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/10851
Vanessaea203ba8baec
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.tsindex f73ed6757c..97b6cd782e 100644--- a/app/src/protyle/util/onGet.ts+++ b/app/src/protyle/util/onGet.ts@@ -33,10 +33,12 @@ export const onGet = (options: {options.protyle.wysiwyg.element.removeAttribute("data-top");if (options.data.code === 1) {// 其他报错- if (options.protyle.model) {- options.protyle.model.parent.parent.removeTab(options.protyle.model.parent.id, false);- } else {- options.protyle.element.innerHTML = `<div class="ft__smaller ft__secondary b3-form__space--small" contenteditable="false">${window.siyuan.languages.refExpired}</div>`;+ if (!options.action.includes(Constants.CB_GET_APPEND)) { // 向下加载时块可能还没有创建 https://github.com/siyuan-note/siyuan/issues/10851+ if (options.protyle.model) {+ options.protyle.model.parent.parent.removeTab(options.protyle.model.parent.id, false);+ } else {+ options.protyle.element.innerHTML = `<div class="ft__smaller ft__secondary b3-form__space--small" contenteditable="false">${window.siyuan.languages.refExpired}</div>`;+ }}return;}