fix(plugin): persist theme mode for web theme

This commit is contained in:
charlie
2024-12-29 17:15:27 +08:00
parent eb2d0be205
commit 7d27651a48
2 changed files with 2 additions and 2 deletions

View File

@@ -843,7 +843,7 @@
(let [theme (bean/->clj theme)
_opts (bean/->clj opts)
url (:url theme)
mode (:mode theme)]
mode (or (:mode theme) (state/sub :ui/theme))]
(when mode
(state/set-custom-theme! mode theme)
(state/set-theme-mode! mode))