🎨 标题引用推送

This commit is contained in:
Vanessa 2024-12-09 21:55:55 +08:00
parent 84e92fa7ee
commit d5cdab8e31

View file

@ -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;
}