🎨 数据历史文档支持只读可视化预览 https://github.com/siyuan-note/siyuan/issues/5735

This commit is contained in:
Liang Ding 2022-08-31 12:52:30 +08:00
parent 46ed13a840
commit 8945626fc0
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -1198,7 +1198,6 @@ func RemoveDoc(boxID, p string) (err error) {
return errors.New(fmt.Sprintf(Conf.Language(70), box.Name, absPath, err))
}
indexHistoryDir(filepath.Base(historyDir), NewLute())
copyDocAssetsToDataAssets(boxID, p)
rootID := tree.ID
@ -1212,6 +1211,7 @@ func RemoveDoc(boxID, p string) (err error) {
return
}
}
indexHistoryDir(filepath.Base(historyDir), NewLute())
box.removeSort(rootID, p)
if err = box.Remove(p); nil != err {