Skip to content

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

:art: 导出 PDF 和 Word 时支持覆盖已有文件 https://github.com/siyuan-note/siyuan/issues/5309

Liang Dinge31fc65044dc
diff --git a/kernel/api/export.go b/kernel/api/export.go
index 940842772c..04f679d4d1 100644
--- a/kernel/api/export.go
+++ b/kernel/api/export.go
@@ -137,7 +137,7 @@ func exportDocx(c *gin.Context) {
savePath := arg["savePath"].(string)
err := model.ExportDocx(id, savePath)
if nil != err {
- ret.Code = -1
+ ret.Code = 1
ret.Msg = err.Error()
ret.Data = map[string]interface{}{"closeTimeout": 7000}
return