mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
🎨 getBlockInfo 返回 code = 3 时告知用户正在索引,请稍后再试
This commit is contained in:
parent
35f7fd0b66
commit
e782e034cc
4 changed files with 19 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ import {setEditMode} from "../protyle/util/setEditMode";
|
|||
import {hideElements} from "../protyle/ui/hideElements";
|
||||
import {pushBack} from "./util/MobileBackFoward";
|
||||
import {setStorageVal} from "../protyle/util/compatibility";
|
||||
import {showMessage} from "../dialog/message";
|
||||
|
||||
export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) => {
|
||||
window.siyuan.storage[Constants.LOCAL_DOCINFO] = {id, action};
|
||||
|
|
@ -44,6 +45,10 @@ export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) =
|
|||
lockFile(data.data);
|
||||
return;
|
||||
}
|
||||
if (data.code === 3) {
|
||||
showMessage(data.msg);
|
||||
return;
|
||||
}
|
||||
if (window.siyuan.mobile.editor) {
|
||||
pushBack();
|
||||
addLoading(window.siyuan.mobile.editor.protyle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue