This commit is contained in:
Vanessa 2022-06-06 15:20:01 +08:00
parent f6cdbb7c4d
commit df81bff4fc

View file

@ -48,7 +48,8 @@ export class Outline extends Model {
this.parent.updateTitle(data.data.title); this.parent.updateTitle(data.data.title);
} else { } else {
this.updateDocTitle({ this.updateDocTitle({
title: data.data.title title: data.data.title,
icon: Constants.ZWSP
}); });
} }
break; break;
@ -176,7 +177,7 @@ export class Outline extends Model {
if (this.type === "pin") { if (this.type === "pin") {
if (ial) { if (ial) {
let iconHTML = `<span class="b3-list-item__graphic">${unicode2Emoji(ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`; 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; iconHTML = this.headerElement.nextElementSibling.firstElementChild.outerHTML;
} }
this.headerElement.nextElementSibling.innerHTML = `${iconHTML} this.headerElement.nextElementSibling.innerHTML = `${iconHTML}