This commit is contained in:
Vanessa 2022-07-15 10:41:05 +08:00
parent d3b603ff6b
commit bf2e2123b7
4 changed files with 9 additions and 9 deletions

View file

@ -84,13 +84,13 @@ class App {
menus: new Menus()
};
fetchPost("/api/system/getConf", {}, response => {
window.siyuan.config = response.data;
window.siyuan.config = response.data.conf;
fetchGet(`/appearance/langs/${window.siyuan.config.appearance.lang}.json?v=${Constants.SIYUAN_VERSION}`, (lauguages) => {
window.siyuan.languages = lauguages;
bootSync();
fetchPost("/api/setting/getCloudUser", {}, userResponse => {
window.siyuan.user = userResponse.data;
onGetConfig();
onGetConfig(response.data.start);
account.onSetaccount();
resizeDrag();
setTitle(window.siyuan.languages.siyuanNote);