mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +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
|
|
@ -148,6 +148,10 @@ func ReloadUI() {
|
|||
BroadcastByType("main", "reloadui", 0, "", nil)
|
||||
}
|
||||
|
||||
func ReloadUIWithMode(mode string) {
|
||||
BroadcastByType("main", "reloadui", 0, "", map[string]interface{}{"mode": mode})
|
||||
}
|
||||
|
||||
func PushTxErr(msg string, code int, data interface{}) {
|
||||
BroadcastByType("main", "txerr", code, msg, data)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue