fix(api): invalid arity error of show msg

pull/5152/head
charlie 2022-04-24 10:54:04 +08:00 committed by Andelf
parent f4bb7bfa9b
commit 45d4a68ac6
1 changed files with 1 additions and 0 deletions

View File

@ -729,6 +729,7 @@
;; ui
(defn ^:export show_msg
([content] (show_msg content :success nil))
([content status] (show_msg content status nil))
([content status ^js opts]
(let [{:keys [key timeout]} (bean/->clj opts)
hiccup? (and (string? content) (string/starts-with? (string/triml content) "[:"))