Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-09 18:22:08 +08:00
parent ff72ff1f27
commit ca179523c3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 15 additions and 7 deletions

View file

@ -985,15 +985,19 @@ func DuplicateDoc(tree *parse.Tree) {
previousPath := tree.Path
resetTree(tree, "Duplicated", false)
// 复制为副本时移除数据库绑定状态 https://github.com/siyuan-note/siyuan/issues/12294
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
if !entering || !n.IsBlock() {
return ast.WalkContinue
}
// 复制为副本时移除数据库绑定状态 https://github.com/siyuan-note/siyuan/issues/12294
n.RemoveIALAttr(av.NodeAttrNameAvs)
n.RemoveIALAttr(av.NodeAttrViewNames)
n.RemoveIALAttrsByPrefix(av.NodeAttrViewStaticText)
// 复制为副本时移除闪卡相关属性 https://github.com/siyuan-note/siyuan/issues/13987
n.RemoveIALAttr(NodeAttrRiffDecks)
return ast.WalkContinue
})