mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve rollback doc
This commit is contained in:
parent
f18be1d084
commit
bea9641d28
1 changed files with 6 additions and 5 deletions
|
|
@ -288,6 +288,12 @@ func RollbackDocHistory(boxID, historyPath string) (err error) {
|
|||
util.PushMsg(Conf.Language(102), 3000)
|
||||
|
||||
IncSync()
|
||||
|
||||
// 刷新属性视图
|
||||
for _, avID := range avIDs {
|
||||
ReloadAttrView(avID)
|
||||
}
|
||||
|
||||
go func() {
|
||||
sql.WaitForWritingDatabase()
|
||||
|
||||
|
|
@ -310,11 +316,6 @@ func RollbackDocHistory(boxID, historyPath string) (err error) {
|
|||
"refText": refText,
|
||||
}
|
||||
util.PushEvent(evt)
|
||||
|
||||
// 刷新属性视图
|
||||
for _, avID := range avIDs {
|
||||
ReloadAttrView(avID)
|
||||
}
|
||||
}()
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue