mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
515d11019d
commit
b2a85c66c6
2 changed files with 23 additions and 41 deletions
|
|
@ -129,6 +129,25 @@ class App {
|
|||
};
|
||||
fetchPost("/api/system/getConf", {}, response => {
|
||||
window.siyuan.config = response.data.conf;
|
||||
// 历史数据兼容,202306后可删除
|
||||
if (!window.siyuan.config.uiLayout.left.data) {
|
||||
window.siyuan.config.uiLayout.left = {
|
||||
pin: true,
|
||||
data: response.data.conf.uiLayout.left
|
||||
}
|
||||
window.siyuan.config.uiLayout.right = {
|
||||
pin: true,
|
||||
data: response.data.conf.uiLayout.right
|
||||
}
|
||||
window.siyuan.config.uiLayout.top = {
|
||||
pin: true,
|
||||
data: response.data.conf.uiLayout.top
|
||||
}
|
||||
window.siyuan.config.uiLayout.bottom = {
|
||||
pin: true,
|
||||
data: response.data.conf.uiLayout.bottom
|
||||
}
|
||||
}
|
||||
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