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 {fetchPost} from "../../util/fetch";
|
||||
import {openEmojiPanel, unicode2Emoji} from "../../emoji";
|
||||
import {newNotebook} from "../../util/mount";
|
||||
import {mountHelp, newNotebook} from "../../util/mount";
|
||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||
import {updateHotkeyTip} from "../../protyle/util/compatibility";
|
||||
import {openFileById} from "../../editor/util";
|
||||
|
@ -577,6 +577,10 @@ export class Files extends Model {
|
|||
});
|
||||
this.init();
|
||||
setPanelFocus(this.element.parentElement);
|
||||
if (window.siyuan.config.openHelp) {
|
||||
// 需等待链接建立,不能放在 ongetconfig 中
|
||||
mountHelp();
|
||||
}
|
||||
}
|
||||
|
||||
private genNotebook(item: INotebook) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import {fetchPost} from "../../util/fetch";
|
|||
import {genUUID} from "../../util/genID";
|
||||
import {openMobileFileById} from "../editor";
|
||||
import {unicode2Emoji} from "../../emoji";
|
||||
import {newNotebook} from "../../util/mount";
|
||||
import {mountHelp, newNotebook} from "../../util/mount";
|
||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||
import {newFile} from "../../util/newFile";
|
||||
|
||||
|
@ -208,6 +208,9 @@ export class MobileFiles extends Model {
|
|||
}
|
||||
});
|
||||
this.init();
|
||||
if (window.siyuan.config.openHelp) {
|
||||
mountHelp();
|
||||
}
|
||||
}
|
||||
|
||||
private genSort(event: MouseEvent) {
|
||||
|
|
|
@ -132,9 +132,6 @@ export const initFramework = () => {
|
|||
closePanel();
|
||||
});
|
||||
initEditorName();
|
||||
if (window.siyuan.config.openHelp) {
|
||||
mountHelp();
|
||||
}
|
||||
if (getOpenNotebookCount() > 0) {
|
||||
if (window.JSAndroid) {
|
||||
if (window.openFileByURL(window.JSAndroid.getBlockURL())) {
|
||||
|
|
|
@ -169,9 +169,6 @@ export const onGetConfig = (isStart: boolean) => {
|
|||
resizeDrag();
|
||||
}, 200);
|
||||
});
|
||||
if (window.siyuan.config.openHelp) {
|
||||
mountHelp();
|
||||
}
|
||||
addGA();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue