浏览代码

:art: 生成重复/冲突文档时移除 `scroll` 浏览位置属性 Fix https://github.com/siyuan-note/siyuan/issues/6016

Liang Ding 2 年之前
父节点
当前提交
268f83cf9e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/model/tree.go

+ 1 - 0
kernel/model/tree.go

@@ -45,6 +45,7 @@ func resetTree(tree *parse.Tree, titleSuffix string) {
 	titleSuffix = "(" + titleSuffix + ")"
 	titleSuffix = "(" + titleSuffix + ")"
 	tree.Root.SetIALAttr("id", tree.ID)
 	tree.Root.SetIALAttr("id", tree.ID)
 	tree.Root.SetIALAttr("title", tree.Root.IALAttr("title")+" "+titleSuffix)
 	tree.Root.SetIALAttr("title", tree.Root.IALAttr("title")+" "+titleSuffix)
+	tree.Root.RemoveIALAttr("scroll")
 	p := path.Join(path.Dir(tree.Path), tree.ID) + ".sy"
 	p := path.Join(path.Dir(tree.Path), tree.ID) + ".sy"
 	tree.Path = p
 	tree.Path = p
 	tree.HPath = tree.HPath + " " + titleSuffix
 	tree.HPath = tree.HPath + " " + titleSuffix