Vanessa 2025-01-13 18:00:26 +08:00
parent 5d8a899d7e
commit 6eaaf77a41

View file

@ -169,8 +169,6 @@ export const setDefRefCount = (data: {
"refCount": number, "refCount": number,
"rootRefCount": number, "rootRefCount": number,
"rootID": string "rootID": string
refIDs: string[]
rootRefIDs: string[]
}) => { }) => {
getAllEditor().forEach(editor => { getAllEditor().forEach(editor => {
if (editor.protyle.block.rootID === data.rootID && editor.protyle.title) { if (editor.protyle.block.rootID === data.rootID && editor.protyle.title) {
@ -181,7 +179,6 @@ export const setDefRefCount = (data: {
countElement.remove(); countElement.remove();
} else { } else {
countElement.textContent = data.rootRefCount.toString(); countElement.textContent = data.rootRefCount.toString();
countElement.setAttribute("data-id", JSON.stringify(data.rootRefIDs));
} }
} else if (data.rootRefCount > 0) { } else if (data.rootRefCount > 0) {
attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block">${data.rootRefCount}</div>`); attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block">${data.rootRefCount}</div>`);