mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-27 18:56:09 +01:00
This commit is contained in:
parent
a9650923e1
commit
b46d7e2ceb
1 changed files with 4 additions and 3 deletions
|
|
@ -174,17 +174,18 @@ export class Tag extends Model {
|
|||
target = target.parentElement;
|
||||
}
|
||||
});
|
||||
this.update();
|
||||
this.update(false);
|
||||
}
|
||||
|
||||
public update() {
|
||||
public update(ignoreMaxListHint = true) {
|
||||
const element = this.element.querySelector('.block__icon[data-type="refresh"] svg');
|
||||
if (element.classList.contains("fn__rotate")) {
|
||||
return;
|
||||
}
|
||||
element.classList.add("fn__rotate");
|
||||
fetchPost("/api/tag/getTag", {
|
||||
sort: window.siyuan.config.tag.sort
|
||||
sort: window.siyuan.config.tag.sort,
|
||||
ignoreMaxListHint
|
||||
}, response => {
|
||||
if (this.openNodes) {
|
||||
this.openNodes = this.tree.getExpandIds();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue