From c2f9b73a8d492d697c6ccf25470bb06bab968a87 Mon Sep 17 00:00:00 2001 From: Halo Dev Bot <87291978+halo-dev-bot@users.noreply.github.com> Date: Thu, 22 Dec 2022 13:38:29 +0800 Subject: [PATCH] [release-2.0] fix: activated theme not loaded after initialization (#793) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is an automated cherry-pick of #790 /assign ruibaby ```release-note 修复首次初始化之后,Console 没有加载已激活主题的问题。 ``` --- src/views/system/Setup.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/system/Setup.vue b/src/views/system/Setup.vue index 49291d137..781bc704b 100644 --- a/src/views/system/Setup.vue +++ b/src/views/system/Setup.vue @@ -18,6 +18,7 @@ import type { SinglePageRequest, Tag, } from "@halo-dev/api-client"; +import { useThemeStore } from "@/stores/theme"; const router = useRouter(); @@ -98,6 +99,8 @@ const handleSubmit = async () => { const systemStateStore = useSystemStatesStore(); await systemStateStore.fetchSystemStates(); + const themeStore = useThemeStore(); + await themeStore.fetchActivatedTheme(); router.push({ name: "Dashboard" }); } catch (error) {