🐛 Editor not automatically refreshed after rolling back document https://github.com/siyuan-note/siyuan/issues/13419

This commit is contained in:
Daniel 2024-12-10 23:11:21 +08:00
parent 1df6209175
commit 914f6314c0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -38,6 +38,9 @@ var (
)
func GetTreeID(treePath string) string {
if strings.Contains(treePath, "\\") {
return strings.TrimSuffix(filepath.Base(treePath), ".sy")
}
return strings.TrimSuffix(path.Base(treePath), ".sy")
}