Vanessa 2023-05-07 17:31:50 +08:00
parent 9bbfd2a3e4
commit 8fe520f4af
8 changed files with 67 additions and 8 deletions

View file

@ -54,6 +54,9 @@ export class App {
id: genUUID(),
type: "main",
msgCallback: (data) => {
this.plugins.forEach((plugin) => {
plugin.eventBus.emit("ws-main", data);
});
if (data) {
switch (data.cmd) {
case "syncMergeResult":
@ -167,8 +170,8 @@ export class App {
bootSync();
fetchPost("/api/setting/getCloudUser", {}, userResponse => {
window.siyuan.user = userResponse.data;
onGetConfig(response.data.start);
loadPlugins(siyuanApp);
onGetConfig(response.data.start);
account.onSetaccount();
resizeDrag();
setTitle(window.siyuan.languages.siyuanNote);