mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 支持导出系统日志文件 https://github.com/siyuan-note/siyuan/issues/5726
This commit is contained in:
parent
4fb74f1186
commit
2a5212e15d
3 changed files with 55 additions and 0 deletions
|
|
@ -131,6 +131,16 @@ func checkUpdate(c *gin.Context) {
|
|||
model.CheckUpdate(showMsg)
|
||||
}
|
||||
|
||||
func exportLog(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
zipPath := model.ExportSystemLog()
|
||||
ret.Data = map[string]interface{}{
|
||||
"zip": zipPath,
|
||||
}
|
||||
}
|
||||
|
||||
var start = true // 是否是启动
|
||||
func getConf(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue