Browse Source

:bug: fix https://github.com/siyuan-note/siyuan/issues/8285

Vanessa 2 years ago
parent
commit
c12547f6fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/protyle/scroll/saveScroll.ts

+ 1 - 1
app/src/protyle/scroll/saveScroll.ts

@@ -75,7 +75,7 @@ export const getDocByScroll = (options: {
         return;
     }
     fetchPost("/api/filetree/getDoc", {
-        id: options.mergedOptions?.blockId || options.protyle.block?.rootID || options.scrollAttr.startId,
+        id: options.scrollAttr.rootId || options.mergedOptions?.blockId || options.protyle.block?.rootID || options.scrollAttr.startId,
         startID: options.scrollAttr.startId,
         endID: options.scrollAttr.endId,
     }, response => {