mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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())
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user