mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 08:46:09 +01:00
This commit is contained in:
parent
2efa085bde
commit
157b2c7540
3 changed files with 6 additions and 6 deletions
|
|
@ -41,7 +41,6 @@ export class App {
|
|||
addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");
|
||||
addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");
|
||||
addBaseURL();
|
||||
loadPlugins(this);
|
||||
window.siyuan = {
|
||||
transactions: [],
|
||||
reqIds: {},
|
||||
|
|
@ -148,7 +147,7 @@ export class App {
|
|||
}),
|
||||
};
|
||||
|
||||
fetchPost("/api/system/getConf", {}, response => {
|
||||
fetchPost("/api/system/getConf", {}, async (response) => {
|
||||
window.siyuan.config = response.data.conf;
|
||||
// 历史数据兼容,202306后可删除
|
||||
if (window.siyuan.config.uiLayout.left && !window.siyuan.config.uiLayout.left.data) {
|
||||
|
|
@ -165,6 +164,7 @@ 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;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ class App {
|
|||
addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");
|
||||
addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");
|
||||
addBaseURL();
|
||||
loadPlugins(this);
|
||||
window.siyuan = {
|
||||
notebooks: [],
|
||||
transactions: [],
|
||||
|
|
@ -61,9 +60,10 @@ class App {
|
|||
window.siyuan.menus.menu.remove();
|
||||
}
|
||||
});
|
||||
fetchPost("/api/system/getConf", {}, confResponse => {
|
||||
fetchPost("/api/system/getConf", {}, async (confResponse) => {
|
||||
confResponse.data.conf.keymap = Constants.SIYUAN_KEYMAP;
|
||||
window.siyuan.config = confResponse.data.conf;
|
||||
await loadPlugins(this);
|
||||
getLocalStorage(() => {
|
||||
fetchGet(`/appearance/langs/${window.siyuan.config.appearance.lang}.json?v=${Constants.SIYUAN_VERSION}`, (lauguages) => {
|
||||
window.siyuan.languages = lauguages;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ class App {
|
|||
addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");
|
||||
addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");
|
||||
addBaseURL();
|
||||
loadPlugins(this);
|
||||
window.siyuan = {
|
||||
transactions: [],
|
||||
reqIds: {},
|
||||
|
|
@ -128,8 +127,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