mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 导出 PDF 和 Word 时支持覆盖已有文件 https://github.com/siyuan-note/siyuan/issues/5309
This commit is contained in:
parent
42eb0e6ad9
commit
958ddf147c
2 changed files with 5 additions and 4 deletions
|
|
@ -135,7 +135,8 @@ func exportDocx(c *gin.Context) {
|
|||
|
||||
id := arg["id"].(string)
|
||||
savePath := arg["savePath"].(string)
|
||||
err := model.ExportDocx(id, savePath)
|
||||
removeAssets := arg["removeAssets"].(bool)
|
||||
err := model.ExportDocx(id, savePath, removeAssets)
|
||||
if nil != err {
|
||||
ret.Code = 1
|
||||
ret.Msg = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue