mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🧑💻 Kernel API /api/ui/reloadUI adds mode parameter https://github.com/siyuan-note/siyuan/issues/15308
This commit is contained in:
parent
21bac6f112
commit
c0841160b3
3 changed files with 15 additions and 2 deletions
|
|
@ -69,5 +69,15 @@ func reloadUI(c *gin.Context) {
|
|||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
util.ReloadUI()
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
modeArg := arg["mode"]
|
||||
if nil != modeArg {
|
||||
util.ReloadUIWithMode(modeArg.(string))
|
||||
} else {
|
||||
util.ReloadUI()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue