mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-29 11:46:09 +01:00
This commit is contained in:
parent
5a9bb84641
commit
a635bcbafd
15 changed files with 63 additions and 64 deletions
|
|
@ -346,7 +346,7 @@ export class Title {
|
|||
}
|
||||
this.element.querySelector(".protyle-attr").innerHTML = nodeAttrHTML;
|
||||
if (response.data.refCount !== 0) {
|
||||
this.element.querySelector(".protyle-attr").insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids='${JSON.stringify([protyle.block.rootID])}' data-id='${JSON.stringify(response.data.refIDs)}'>${response.data.refCount}</div>`);
|
||||
this.element.querySelector(".protyle-attr").insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block">${response.data.refCount}</div>`);
|
||||
}
|
||||
// 存在设置新建文档名模板,不能使用 Untitled 进行判断,https://ld246.com/article/1649301009888
|
||||
if (this.editElement && new Date().getTime() - dayjs(response.data.id.split("-")[0]).toDate().getTime() < 2000) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue