mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
823a90767b
commit
ea7fc4ea8e
4 changed files with 9 additions and 8 deletions
|
|
@ -11,7 +11,7 @@ import {Editor} from "../../editor";
|
||||||
import {showMessage} from "../../dialog/message";
|
import {showMessage} from "../../dialog/message";
|
||||||
import {fetchPost} from "../../util/fetch";
|
import {fetchPost} from "../../util/fetch";
|
||||||
import {openEmojiPanel, unicode2Emoji} from "../../emoji";
|
import {openEmojiPanel, unicode2Emoji} from "../../emoji";
|
||||||
import {newNotebook} from "../../util/mount";
|
import {mountHelp, newNotebook} from "../../util/mount";
|
||||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||||
import {updateHotkeyTip} from "../../protyle/util/compatibility";
|
import {updateHotkeyTip} from "../../protyle/util/compatibility";
|
||||||
import {openFileById} from "../../editor/util";
|
import {openFileById} from "../../editor/util";
|
||||||
|
|
@ -577,6 +577,10 @@ export class Files extends Model {
|
||||||
});
|
});
|
||||||
this.init();
|
this.init();
|
||||||
setPanelFocus(this.element.parentElement);
|
setPanelFocus(this.element.parentElement);
|
||||||
|
if (window.siyuan.config.openHelp) {
|
||||||
|
// 需等待链接建立,不能放在 ongetconfig 中
|
||||||
|
mountHelp();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private genNotebook(item: INotebook) {
|
private genNotebook(item: INotebook) {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import {fetchPost} from "../../util/fetch";
|
||||||
import {genUUID} from "../../util/genID";
|
import {genUUID} from "../../util/genID";
|
||||||
import {openMobileFileById} from "../editor";
|
import {openMobileFileById} from "../editor";
|
||||||
import {unicode2Emoji} from "../../emoji";
|
import {unicode2Emoji} from "../../emoji";
|
||||||
import {newNotebook} from "../../util/mount";
|
import {mountHelp, newNotebook} from "../../util/mount";
|
||||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||||
import {newFile} from "../../util/newFile";
|
import {newFile} from "../../util/newFile";
|
||||||
|
|
||||||
|
|
@ -208,6 +208,9 @@ export class MobileFiles extends Model {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.init();
|
this.init();
|
||||||
|
if (window.siyuan.config.openHelp) {
|
||||||
|
mountHelp();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private genSort(event: MouseEvent) {
|
private genSort(event: MouseEvent) {
|
||||||
|
|
|
||||||
|
|
@ -132,9 +132,6 @@ export const initFramework = () => {
|
||||||
closePanel();
|
closePanel();
|
||||||
});
|
});
|
||||||
initEditorName();
|
initEditorName();
|
||||||
if (window.siyuan.config.openHelp) {
|
|
||||||
mountHelp();
|
|
||||||
}
|
|
||||||
if (getOpenNotebookCount() > 0) {
|
if (getOpenNotebookCount() > 0) {
|
||||||
if (window.JSAndroid) {
|
if (window.JSAndroid) {
|
||||||
if (window.openFileByURL(window.JSAndroid.getBlockURL())) {
|
if (window.openFileByURL(window.JSAndroid.getBlockURL())) {
|
||||||
|
|
|
||||||
|
|
@ -169,9 +169,6 @@ export const onGetConfig = (isStart: boolean) => {
|
||||||
resizeDrag();
|
resizeDrag();
|
||||||
}, 200);
|
}, 200);
|
||||||
});
|
});
|
||||||
if (window.siyuan.config.openHelp) {
|
|
||||||
mountHelp();
|
|
||||||
}
|
|
||||||
addGA();
|
addGA();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue