fix: When refreshing the page, the topic is wrong

This commit is contained in:
vben
2024-05-25 22:43:22 +08:00
parent 352119cc3a
commit f2644dbbc5
11 changed files with 38 additions and 24 deletions

View File

@@ -8,14 +8,14 @@ import { createApp } from 'vue';
import App from './app.vue';
import { router } from './router';
async function bootstrap(namespace: string, env: string) {
async function bootstrap(namespace: string) {
const app = createApp(App);
// 国际化 i18n 配置
await setupI18n(app, { defaultLocale: preference.locale });
// 配置 pinia-store
await setupStore(app, { env, namespace });
await setupStore(app, { namespace });
// 配置路由及路由守卫
app.use(router);