Vanessa 2024-09-19 22:09:49 +08:00
parent 1138629405
commit 6ff0473c41

View file

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