소스 검색

:art: 标题引用推送

Vanessa 7 달 전
부모
커밋
d5cdab8e31
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;
         }