mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
d3b603ff6b
commit
bf2e2123b7
4 changed files with 9 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue