mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 浏览器端和移动端导出 Data 去掉 data- 前缀 Fix https://github.com/siyuan-note/siyuan/issues/6808
导出 Data 不带 data 父文件夹 Fix https://github.com/siyuan-note/siyuan/issues/6805
This commit is contained in:
parent
560ff8c9d4
commit
ae11242a19
3 changed files with 27 additions and 23 deletions
|
|
@ -41,13 +41,16 @@ func exportDataInFolder(c *gin.Context) {
|
|||
}
|
||||
|
||||
exportFolder := arg["folder"].(string)
|
||||
err := model.ExportDataInFolder(exportFolder)
|
||||
name, err := model.ExportDataInFolder(exportFolder)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
ret.Data = map[string]interface{}{"closeTimeout": 7000}
|
||||
return
|
||||
}
|
||||
ret.Data = map[string]interface{}{
|
||||
"name": name,
|
||||
}
|
||||
}
|
||||
|
||||
func exportData(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue