mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
This commit is contained in:
parent
9da4a582c4
commit
0ac17d30f7
4 changed files with 42 additions and 13 deletions
|
|
@ -28,6 +28,7 @@ import {getSearch} from "./util/functions";
|
|||
import {hideAllElements} from "./protyle/ui/hideElements";
|
||||
import {loadPlugins, reloadPlugin} from "./plugin/loader";
|
||||
import "./assets/scss/base.scss";
|
||||
import {reloadEmoji} from "./emoji";
|
||||
|
||||
export class App {
|
||||
public plugins: import("./plugin").Plugin[] = [];
|
||||
|
|
@ -64,9 +65,7 @@ export class App {
|
|||
reloadPlugin(this, data.data);
|
||||
break;
|
||||
case "reloadEmojiConf":
|
||||
fetchPost("/api/system/getEmojiConf", {}, response => {
|
||||
window.siyuan.emojis = response.data as IEmoji[];
|
||||
});
|
||||
reloadEmoji();
|
||||
break;
|
||||
case "syncMergeResult":
|
||||
reloadSync(this, data.data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue