Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/7536

Vanessa03b3de4d16c6
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index aeed7a3b2e..c8bbcb2032 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -101,7 +101,12 @@ export const avRender = (element: Element, cb?: () => void) => {
}
};
+let lastparentID:string
export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
+ if (lastparentID === operation.parentID) {
+ return
+ }
+ lastparentID = operation.parentID;
if (operation.action === "addAttrViewCol") {
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${operation.parentID}"]`)).forEach((item: HTMLElement) => {
item.removeAttribute("data-render");