mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
🎨 Update av export
This commit is contained in:
parent
376384d4e3
commit
c3adbe6b52
1 changed files with 4 additions and 2 deletions
|
|
@ -261,8 +261,10 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
for k, v := range ial {
|
||||
if strings.HasPrefix(k, NodeAttrNamePrefixAvKey) || strings.HasPrefix(k, NodeAttrNameAvs) {
|
||||
for oldAvID, newAvID := range avIDs {
|
||||
v = strings.ReplaceAll(v, oldAvID, newAvID)
|
||||
n.SetIALAttr(k, v)
|
||||
newKey := strings.ReplaceAll(k, oldAvID, newAvID)
|
||||
newVal := strings.ReplaceAll(v, oldAvID, newAvID)
|
||||
n.SetIALAttr(newKey, newVal)
|
||||
n.RemoveIALAttr(k)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue