An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:zap: https://github.com/siyuan-note/siyuan/issues/14167
Vanessad40a3ac58b27
diff --git a/app/src/util/assets.ts b/app/src/util/assets.tsindex a54f060a86..92939eb4ee 100644--- a/app/src/util/assets.ts+++ b/app/src/util/assets.ts@@ -102,16 +102,18 @@ export const loadAssets = (data: Config.IAppearance) => {// 不能使用 data.iconVer,因为其他主题也需要加载默认图标,此时 data.iconVer 为其他图标的版本号const iconURL = `/appearance/icons/${["ant", "material"].includes(data.icon) ? data.icon : "material"}/icon.js?v=${Constants.SIYUAN_VERSION}`;if (iconDefaultScriptElement) {- iconDefaultScriptElement.remove();- let svgElement = document.body.firstElementChild;- while (svgElement.tagName === "svg") {- const currentSvgElement = svgElement;- svgElement = svgElement.nextElementSibling;- if (!currentSvgElement.getAttribute("data-name")) {- currentSvgElement.remove();+ if (!iconDefaultScriptElement.getAttribute("src").startsWith(iconURL)) {+ iconDefaultScriptElement.remove();+ let svgElement = document.body.firstElementChild;+ while (svgElement.tagName === "svg") {+ const currentSvgElement = svgElement;+ svgElement = svgElement.nextElementSibling;+ if (!currentSvgElement.getAttribute("data-name")) {+ currentSvgElement.remove();+ }}+ loadThirdIcon(iconURL, data);}- loadThirdIcon(iconURL, data);} else {loadThirdIcon(iconURL, data);}