瀏覽代碼

:bug: Export .sy.zip doc title image is not exported Fix https://github.com/siyuan-note/siyuan/issues/8748

Daniel 2 年之前
父節點
當前提交
19f233b510
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      kernel/model/export.go

+ 5 - 0
kernel/model/export.go

@@ -1225,6 +1225,11 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
 	for _, tree := range trees {
 		var assets []string
 		assets = append(assets, assetsLinkDestsInTree(tree)...)
+		titleImgPath := treenode.GetDocTitleImgPath(tree.Root) // Export .sy.zip doc title image is not exported https://github.com/siyuan-note/siyuan/issues/8748
+		if "" != titleImgPath {
+			assets = append(assets, titleImgPath)
+		}
+
 		for _, asset := range assets {
 			asset = string(html.DecodeDestination([]byte(asset)))
 			if strings.Contains(asset, "?") {