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

This commit is contained in:
Daniel 2024-10-11 14:40:30 +08:00
parent c930c28b93
commit 40abcee32d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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)
}
}