Browse Source

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

Liang Ding 3 years ago
parent
commit
e31fc65044
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/api/export.go

+ 1 - 1
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