فهرست منبع

:art: fix https://github.com/siyuan-note/siyuan/issues/12512

Vanessa 9 ماه پیش
والد
کامیت
6ff0473c41
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      app/src/dialog/processSystem.ts

+ 5 - 0
app/src/dialog/processSystem.ts

@@ -201,6 +201,11 @@ export const setDefRefCount = (data: {
                     attrElement.innerHTML = `<div class="protyle-attr--refcount popover__block">${data.refCount}</div>${Constants.ZWSP}`;
                 }
             }
+            if (data.refCount === 0) {
+                item.removeAttribute("refcount")
+            } else {
+                item.setAttribute("refcount", data.refCount.toString())
+            }
         });
     });