This commit is contained in:
Vanessa 2024-01-02 10:29:46 +08:00
parent d31b5a818d
commit cb6a843cd9

View file

@ -65,7 +65,7 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_
if (window.siyuan.mobile.editor) {
pushBack();
addLoading(window.siyuan.mobile.editor.protyle);
if (action.includes(Constants.CB_GET_SCROLL)) {
if (action.includes(Constants.CB_GET_SCROLL) && window.siyuan.storage[Constants.LOCAL_FILEPOSITION][data.data.rootID]) {
getDocByScroll({
protyle: window.siyuan.mobile.editor.protyle,
scrollAttr: window.siyuan.storage[Constants.LOCAL_FILEPOSITION][data.data.rootID],