Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/9527

Vanessa8eb83b160442
diff --git a/app/src/block/util.ts b/app/src/block/util.ts
index b9111ac0c3..c31b4ae583 100644
--- a/app/src/block/util.ts
+++ b/app/src/block/util.ts
@@ -7,6 +7,8 @@ import {scrollCenter} from "../util/highlightById";
import {Constants} from "../constants";
import {hideElements} from "../protyle/ui/hideElements";
import {blockRender} from "../protyle/render/blockRender";
+import {fetchPost} from "../util/fetch";
+import {zoomOut} from "../menus/protyle";
export const cancelSB = (protyle: IProtyle, nodeElement: Element) => {
const doOperations: IOperation[] = [];
@@ -80,6 +82,15 @@ export const jumpToParentNext = (protyle: IProtyle, nodeElement: Element) => {
if (nextElement) {
focusBlock(nextElement);
scrollCenter(protyle, nextElement);
+ } else {
+ fetchPost("/api/block/getParentNextChildID", {id: nodeElement.getAttribute("data-node-id")}, (response) => {
+ if (response.data.id) {
+ zoomOut({
+ protyle,
+ id: response.data.id,
+ })
+ }
+ })
}
}
};