mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 backlink 点击刷新需立即旋转
This commit is contained in:
parent
35469884d4
commit
2fb7c8c5bc
1 changed files with 3 additions and 0 deletions
|
|
@ -453,9 +453,12 @@ export class Backlink extends Model {
|
|||
}
|
||||
|
||||
private refresh() {
|
||||
const element = this.element.querySelector('.block__icon[data-type="refresh"] svg');
|
||||
element.classList.add("fn__rotate")
|
||||
fetchPost("/api/ref/refreshBacklink", {
|
||||
id: this.blockId,
|
||||
}, () => {
|
||||
element.classList.remove("fn__rotate")
|
||||
this.searchBacklinks();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue