mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
c7cba8a831
commit
fbe0f4f303
9 changed files with 34 additions and 26 deletions
|
|
@ -19,6 +19,7 @@ import {initMessage} from "../dialog/message";
|
|||
import {getAllTabs} from "../layout/getAll";
|
||||
import {getLocalStorage} from "../protyle/util/compatibility";
|
||||
import {init} from "../window/init";
|
||||
import {loadPlugins} from "../plugin/loader";
|
||||
|
||||
class App {
|
||||
public plugins: import("../plugin").Plugin[] = [];
|
||||
|
|
@ -127,8 +128,9 @@ class App {
|
|||
}
|
||||
}),
|
||||
};
|
||||
fetchPost("/api/system/getConf", {}, (response) => {
|
||||
fetchPost("/api/system/getConf", {}, async (response) => {
|
||||
window.siyuan.config = response.data.conf;
|
||||
await loadPlugins(this);
|
||||
getLocalStorage(() => {
|
||||
fetchGet(`/appearance/langs/${window.siyuan.config.appearance.lang}.json?v=${Constants.SIYUAN_VERSION}`, (lauguages) => {
|
||||
window.siyuan.languages = lauguages;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue