mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🎨 标题引用推送
This commit is contained in:
parent
84e92fa7ee
commit
d5cdab8e31
1 changed files with 2 additions and 2 deletions
|
|
@ -183,10 +183,10 @@ export const setDefRefCount = (data: {
|
||||||
countElement.remove();
|
countElement.remove();
|
||||||
} else {
|
} else {
|
||||||
countElement.textContent = data.refCount.toString();
|
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) {
|
} else if (data.refCount > 0) {
|
||||||
attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids="["${data.blockID}"]" data-id="${data.refIDs.toString()}" style="">${data.refCount}</div>`);
|
attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids="["${data.blockID}"]" data-id="${JSON.stringify(data.refIDs)}" style="">${data.refCount}</div>`);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue