浏览代码

:rotating_light:

Vanessa 3 年之前
父节点
当前提交
f8b9c5ed92
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/src/emoji/index.ts
  2. 1 1
      app/src/layout/dock/Outline.ts

+ 1 - 1
app/src/emoji/index.ts

@@ -387,7 +387,7 @@ export const updateOutlineEmoji = (unicode: string) => {
     getAllModels().outline.forEach(model => {
         model.headerElement.nextElementSibling.firstElementChild.innerHTML = unicode2Emoji(unicode || Constants.SIYUAN_IMAGE_FILE);
     });
-}
+};
 
 export const updateFileTreeEmoji = (unicode: string, id: string, icon = "iconFile") => {
     let emojiElement;

+ 1 - 1
app/src/layout/dock/Outline.ts

@@ -166,7 +166,7 @@ export class Outline extends Model {
     public updateDocTitle(ial?:IObject) {
         if (this.type === "pin") {
             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) {
                     iconHTML = this.headerElement.nextElementSibling.firstElementChild.outerHTML;
                 }