Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
[release-2.0] fix: activated theme not loaded after initialization (#793
Browse files Browse the repository at this point in the history
)

This is an automated cherry-pick of #790

/assign ruibaby

```release-note
修复首次初始化之后,Console 没有加载已激活主题的问题。
```
  • Loading branch information
halo-dev-bot authored Dec 22, 2022
1 parent 8433dcb commit c2f9b73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/system/Setup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type {
SinglePageRequest,
Tag,
} from "@halo-dev/api-client";
import { useThemeStore } from "@/stores/theme";
const router = useRouter();
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c2f9b73

Please # to comment.