Ver código fonte

:art: Improve exporting .sy.zip https://github.com/siyuan-note/siyuan/issues/12831

Daniel 8 meses atrás
pai
commit
706b33b5d5
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      kernel/model/export.go

+ 2 - 0
kernel/model/export.go

@@ -1558,6 +1558,7 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
 				refTrees[refTreeID] = refTree
 			}
 		}
+		count++
 	}
 
 	util.PushEndlessProgress(Conf.Language(65))
@@ -1589,6 +1590,7 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
 		util.PushEndlessProgress(Conf.language(65) + " " + fmt.Sprintf(Conf.Language(66), fmt.Sprintf("%d/%d ", count, total)+tree.HPath))
 	}
 
+	count = 0
 	// 引用树放在导出文件夹根路径下
 	for treeID, tree := range refTrees {
 		readPath := filepath.Join(util.DataDir, tree.Box, tree.Path)