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

@ -92,7 +92,7 @@ export const setProxy = () => {
/// #endif
};
export const onGetConfig = () => {
export const onGetConfig = (isStart:boolean) => {
const matchKeymap1 = matchKeymap(Constants.SIYUAN_KEYMAP.general, "general");
const matchKeymap2 = matchKeymap(Constants.SIYUAN_KEYMAP.editor.general, "editor", "general");
const matchKeymap3 = matchKeymap(Constants.SIYUAN_KEYMAP.editor.insert, "editor", "insert");
@ -128,7 +128,7 @@ export const onGetConfig = () => {
fetchPost("/api/system/getEmojiConf", {}, response => {
window.siyuan.emojis = response.data as IEmoji[];
try {
JSONToLayout();
JSONToLayout(isStart);
} catch (e) {
fetchPost("/api/system/setUILayout", {layout: {}}, () => {
window.location.reload();