Browse Source

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

Daniel 7 months ago
parent
commit
914f6314c0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      kernel/util/path.go

+ 3 - 0
kernel/util/path.go

@@ -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")
 }