Skip to content

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

:art: 标题引用推送

Vanessad5cdab8e31c0
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 3699edf699..72f025c160 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -183,10 +183,10 @@ export const setDefRefCount = (data: {
countElement.remove();
} else {
countElement.textContent = data.refCount.toString();
- countElement.setAttribute("data-id", data.refIDs.toString());
+ countElement.setAttribute("data-id", JSON.stringify(data.refIDs));
}
} else if (data.refCount > 0) {
- attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids="[&quot;${data.blockID}&quot;]" data-id="${data.refIDs.toString()}" style="">${data.refCount}</div>`);
+ attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids="[&quot;${data.blockID}&quot;]" data-id="${JSON.stringify(data.refIDs)}" style="">${data.refCount}</div>`);
}
return;
}