mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 消息提示支持显示多条 https://github.com/siyuan-note/siyuan/issues/4875
This commit is contained in:
parent
872a6f43f0
commit
27c80da76d
2 changed files with 7 additions and 3 deletions
|
|
@ -62,7 +62,7 @@ func clearWorkspaceHistory(c *gin.Context) {
|
|||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
util.PushMsg(model.Conf.Language(100), 1000*60*15)
|
||||
msgId := util.PushMsg(model.Conf.Language(100), 1000*60*15)
|
||||
time.Sleep(3 * time.Second)
|
||||
err := model.ClearWorkspaceHistory()
|
||||
if nil != err {
|
||||
|
|
@ -70,6 +70,7 @@ func clearWorkspaceHistory(c *gin.Context) {
|
|||
ret.Msg = err.Error()
|
||||
return
|
||||
}
|
||||
util.PushClearMsg(msgId)
|
||||
util.PushMsg(model.Conf.Language(99), 1000*5)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue