mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🐛 Editor not automatically refreshed after rolling back document https://github.com/siyuan-note/siyuan/issues/13419
This commit is contained in:
parent
1df6209175
commit
914f6314c0
1 changed files with 3 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetTreeID(treePath string) string {
|
func GetTreeID(treePath string) string {
|
||||||
|
if strings.Contains(treePath, "\\") {
|
||||||
|
return strings.TrimSuffix(filepath.Base(treePath), ".sy")
|
||||||
|
}
|
||||||
return strings.TrimSuffix(path.Base(treePath), ".sy")
|
return strings.TrimSuffix(path.Base(treePath), ".sy")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue