Browse Source

:art: `上传资源文件到图床` 每次都全量上传刷新 CDN https://github.com/siyuan-note/siyuan/issues/6985

Liang Ding 2 years ago
parent
commit
542c43d4b5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      kernel/model/conf.go

+ 1 - 0
kernel/model/conf.go

@@ -675,6 +675,7 @@ func clearWorkspaceTemp() {
 	os.RemoveAll(filepath.Join(util.TempDir, "import"))
 	os.RemoveAll(filepath.Join(util.TempDir, "repo"))
 	os.RemoveAll(filepath.Join(util.TempDir, "os"))
+	os.RemoveAll(filepath.Join(util.DataDir, "assets", ".siyuan", "assets.json"))
 
 	// 退出时自动删除超过 7 天的安装包 https://github.com/siyuan-note/siyuan/issues/6128
 	install := filepath.Join(util.TempDir, "install")