An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: https://github.com/siyuan-note/siyuan/issues/4042
Vanessaf749a89abced
diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.tsindex 9f4ea66e72..285b118e37 100644--- a/app/src/protyle/header/Title.ts+++ b/app/src/protyle/header/Title.ts@@ -360,6 +360,10 @@ ${window.siyuan.languages.createdAt} ${dayjs(response.data.ial.id.substr(0, 14))range.selectNodeContents(this.editElement);focusByRange(range);}+ const loadingElement = protyle.element.querySelector(".fn__loading");+ if (loadingElement) {+ loadingElement.remove();+ }if (scrollAttr) {restoreScroll(protyle, scrollAttr === Constants.CB_GET_SCROLL ? undefined : scrollAttr);}diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.tsindex a039b44f92..416b2d3623 100644--- a/app/src/protyle/util/onGet.ts+++ b/app/src/protyle/util/onGet.ts@@ -17,10 +17,6 @@ import {preventScroll} from "../scroll/preventScroll";import {restoreScroll} from "../scroll/saveScroll";export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[] = [], scrollAttr?: string) => {- const loadingElement = protyle.element.querySelector(".fn__loading");- if (loadingElement) {- loadingElement.remove();- }protyle.wysiwyg.element.removeAttribute("data-top");if (data.code === 1) {// 其他报错@@ -97,8 +93,14 @@ export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[]action,}, protyle);- if (scrollAttr && ((protyle.options.render.title && protyle.title.editElement.getAttribute("data-render") === "true") || !protyle.options.render.title)) {- restoreScroll(protyle, scrollAttr);+ if ((protyle.options.render.title && protyle.title.editElement.getAttribute("data-render") === "true") || !protyle.options.render.title) {+ const loadingElement = protyle.element.querySelector(".fn__loading");+ if (loadingElement) {+ loadingElement.remove();+ }+ if (scrollAttr) {+ restoreScroll(protyle, scrollAttr);+ }}};