Skip to content

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

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

Vanessa69ece9ab180b
diff --git a/app/src/editor/util.ts b/app/src/editor/util.ts
index 725da037cc..3c12cfe918 100644
--- a/app/src/editor/util.ts
+++ b/app/src/editor/util.ts
@@ -331,7 +331,7 @@ export const isCurrentEditor = (blockId: string) => {
if (activeElement) {
const tab = getInstanceById(activeElement.getAttribute("data-id"));
if (tab instanceof Tab && tab.model instanceof Editor) {
- if (tab.model.editor.protyle.block.rootID !== blockId) {
+ if (tab.model.editor.protyle.block.rootID !== blockId && tab.model.editor.protyle.block.id !== blockId) {
return false;
}
}
@@ -426,6 +426,7 @@ export const updateBacklinkGraph = (models: IModels, protyle: IProtyle) => {
mk: item.inputsElement[1].value,
}, response => {
if (!isCurrentEditor(blockId)) {
+ item.element.querySelector('.block__icon[data-type="refresh"] svg').classList.remove("fn__rotate");
return;
}
item.blockId = blockId;