refactor: refacotr preference

This commit is contained in:
vben
2024-06-01 23:15:29 +08:00
parent f7b97e8a83
commit fed47f5e05
139 changed files with 2205 additions and 1450 deletions

View File

@@ -1,8 +1,9 @@
import '@vben/styles';
import { preferences } from '@vben-core/preferences';
import { setupStore } from '@/store';
import { setupI18n } from '@vben/locales';
import { preference } from '@vben/preference';
import { setupStore } from '@vben/stores';
import { createApp } from 'vue';
import App from './app.vue';
@@ -12,7 +13,7 @@ async function bootstrap(namespace: string) {
const app = createApp(App);
// 国际化 i18n 配置
await setupI18n(app, { defaultLocale: preference.locale });
await setupI18n(app, { defaultLocale: preferences.app.locale });
// 配置 pinia-store
await setupStore(app, { namespace });