mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
f46e0d48ad
commit
b8f56f4a1d
7 changed files with 20 additions and 20 deletions
|
|
@ -25,7 +25,6 @@ import {getAllTabs} from "./layout/getAll";
|
|||
import {getLocalStorage} from "./protyle/util/compatibility";
|
||||
import {getSearch} from "./util/functions";
|
||||
import {hideAllElements} from "./protyle/ui/hideElements";
|
||||
import {loadPlugins} from "./plugin/loader";
|
||||
import "./assets/scss/base.scss";
|
||||
|
||||
export class App {
|
||||
|
|
@ -147,7 +146,7 @@ export class App {
|
|||
}),
|
||||
};
|
||||
|
||||
fetchPost("/api/system/getConf", {}, async (response) => {
|
||||
fetchPost("/api/system/getConf", {}, (response) => {
|
||||
window.siyuan.config = response.data.conf;
|
||||
// 历史数据兼容,202306后可删除
|
||||
if (window.siyuan.config.uiLayout.left && !window.siyuan.config.uiLayout.left.data) {
|
||||
|
|
@ -164,7 +163,6 @@ export class App {
|
|||
data: response.data.conf.uiLayout.bottom
|
||||
};
|
||||
}
|
||||
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