🐛 移动文档时 hpath 未跟随

This commit is contained in:
Liang Ding 2023-02-07 10:58:39 +08:00
parent c5c9884d38
commit 63303cec81
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -54,7 +54,7 @@ func NodeHash(node *ast.Node, tree *parse.Tree, luteEngine *lute.Lute) string {
md = FormatNode(node, luteEngine)
}
hpath := tree.HPath
data := tree.Path + hpath + string(ial) + md
data := tree.Box + tree.Path + hpath + string(ial) + md
return fmt.Sprintf("%x", sha256.Sum256(gulu.Str.ToBytes(data)))[:7]
}