Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve performance of exporting .sy.zip for notebook https://github.com/siyuan-note/siyuan/issues/12653

Daniel40abcee32d6d
diff --git a/kernel/model/export.go b/kernel/model/export.go
index b4a07469f2..0ea99c4a1b 100644
--- a/kernel/model/export.go
+++ b/kernel/model/export.go
@@ -1629,6 +1629,8 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
}
for _, asset := range assets {
+ util.PushEndlessProgress(Conf.language(65) + " " + fmt.Sprintf(Conf.language(70), asset))
+
asset = string(html.DecodeDestination([]byte(asset)))
if strings.Contains(asset, "?") {
asset = asset[:strings.LastIndex(asset, "?")]
@@ -1662,9 +1664,6 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
}
copiedAssets.Add(asset)
-
- msg := Conf.language(65) + " " + fmt.Sprintf(Conf.language(70), asset)
- util.PushEndlessProgress(msg)
}
}