Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/5108

Vanessadf81bff4fc40
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts
index 2dc330417e..6070b8a71c 100644
--- a/app/src/layout/dock/Outline.ts
+++ b/app/src/layout/dock/Outline.ts
@@ -48,7 +48,8 @@ export class Outline extends Model {
this.parent.updateTitle(data.data.title);
} else {
this.updateDocTitle({
- title: data.data.title
+ title: data.data.title,
+ icon: Constants.ZWSP
});
}
break;
@@ -176,7 +177,7 @@ export class Outline extends Model {
if (this.type === "pin") {
if (ial) {
let iconHTML = `<span class="b3-list-item__graphic">${unicode2Emoji(ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`;
- if (typeof ial.icon === "undefined" && this.headerElement.nextElementSibling.firstElementChild) {
+ if (ial.icon === Constants.ZWSP && this.headerElement.nextElementSibling.firstElementChild) {
iconHTML = this.headerElement.nextElementSibling.firstElementChild.outerHTML;
}
this.headerElement.nextElementSibling.innerHTML = `${iconHTML}