Browse Source

:art: 标题引用推送

Vanessa 7 months ago
parent
commit
d5cdab8e31
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/src/dialog/processSystem.ts

+ 2 - 2
app/src/dialog/processSystem.ts

@@ -183,10 +183,10 @@ export const setDefRefCount = (data: {
                     countElement.remove();
                 } else {
                     countElement.textContent = data.refCount.toString();
-                    countElement.setAttribute("data-id", data.refIDs.toString());
+                    countElement.setAttribute("data-id", JSON.stringify(data.refIDs));
                 }
             } else if (data.refCount > 0) {
-                attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids="[&quot;${data.blockID}&quot;]" data-id="${data.refIDs.toString()}" style="">${data.refCount}</div>`);
+                attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids="[&quot;${data.blockID}&quot;]" data-id="${JSON.stringify(data.refIDs)}" style="">${data.refCount}</div>`);
             }
             return;
         }