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

Commit

Permalink
fix: activated theme not loaded after initialization (#790)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

修复首次初始化之后,Console 没有加载已激活主题的问题。

#### Which issue(s) this PR fixes:

Fixes halo-dev/halo#3018

#### Special notes for your reviewer:

测试方式:

1. 使用全新的环境
2. 参考 https://docs.halo.run/developer-guide/core/build 构建可执行 JAR。
3. 运行 Halo,初始化之后检查 Console 主题页面是否已经加载了已经激活的主题。

#### Does this PR introduce a user-facing change?

```release-note
修复首次初始化之后,Console 没有加载已激活主题的问题。
```
  • Loading branch information
ruibaby authored Dec 22, 2022
1 parent a396aad commit 4666d4f
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" });
Expand Down

1 comment on commit 4666d4f

@vercel
Copy link

@vercel vercel bot commented on 4666d4f Dec 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

halo-admin-ui.vercel.app
ui-halo-dev.vercel.app
ui-git-main-halo-dev.vercel.app

Please sign in to comment.