Vanessa 2024-10-22 18:13:21 +08:00
parent 20e8b81b8f
commit 5760f7fe4c
11 changed files with 53 additions and 32 deletions

View file

@ -19,7 +19,7 @@ export const getCurrentEditor = () => {
return window.siyuan.mobile.popEditor || window.siyuan.mobile.editor;
};
export const openMobileFileById = (app: App, id: string, action = [Constants.CB_GET_HL]) => {
export const openMobileFileById = (app: App, id: string, action: TProtyleAction[] = [Constants.CB_GET_HL]) => {
window.siyuan.storage[Constants.LOCAL_DOCINFO] = {id};
setStorageVal(Constants.LOCAL_DOCINFO, window.siyuan.storage[Constants.LOCAL_DOCINFO]);
const avPanelElement = document.querySelector(".av__panel");
@ -52,7 +52,7 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_
showMessage(data.msg);
return;
}
const protyleOptions: IOptions = {
const protyleOptions: IProtyleOptions = {
blockId: id,
rootId: data.data.rootID,
action,