An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5671
Vanessab56bb8ffc05c
diff --git a/app/src/protyle/scroll/saveScroll.ts b/app/src/protyle/scroll/saveScroll.tsindex 471844d748..42ff6cf5a5 100644--- a/app/src/protyle/scroll/saveScroll.ts+++ b/app/src/protyle/scroll/saveScroll.ts@@ -63,10 +63,14 @@ export const restoreScroll = (protyle: IProtyle, scrollAttr: IScrollAttr) => {/// #endif}} else if (scrollAttr.zoomInId && protyle.block.id !== scrollAttr.zoomInId) {- zoomOut(protyle, scrollAttr.zoomInId, undefined, true, () => {- protyle.contentElement.scrollTop = scrollAttr.scrollTop;- if (scrollAttr.focusId) {- focusByOffset(protyle.wysiwyg.element.querySelector(`[data-node-id="${scrollAttr.focusId}"]`), scrollAttr.focusStart, scrollAttr.focusEnd);+ fetchPost("/api/block/checkBlockExist", {id: scrollAttr.zoomInId}, existResponse => {+ if (existResponse.data) {+ zoomOut(protyle, scrollAttr.zoomInId, undefined, true, () => {+ protyle.contentElement.scrollTop = scrollAttr.scrollTop;+ if (scrollAttr.focusId) {+ focusByOffset(protyle.wysiwyg.element.querySelector(`[data-node-id="${scrollAttr.focusId}"]`), scrollAttr.focusStart, scrollAttr.focusEnd);+ }+ });}});} else if (!protyle.scroll.element.classList.contains("fn__none")) {