瀏覽代碼

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

Vanessa 2 年之前
父節點
當前提交
c12547f6fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 => {