diff --git a/apps/antd-view/package.json b/apps/antd-view/package.json index d4175345..5479fc2f 100644 --- a/apps/antd-view/package.json +++ b/apps/antd-view/package.json @@ -22,14 +22,14 @@ "typecheck": "vue-tsc --noEmit --skipLibCheck" }, "dependencies": { + "@vben-core/preferences": "workspace:*", + "@vben-core/stores": "workspace:*", "@vben/common-ui": "workspace:*", "@vben/constants": "workspace:*", "@vben/hooks": "workspace:*", "@vben/icons": "workspace:*", "@vben/layouts": "workspace:*", "@vben/locales": "workspace:*", - "@vben/preference": "workspace:*", - "@vben/stores": "workspace:*", "@vben/styles": "workspace:*", "@vben/types": "workspace:*", "@vben/utils": "workspace:*", @@ -37,6 +37,7 @@ "ant-design-vue": "^4.2.1", "axios": "^1.7.2", "dayjs": "^1.11.11", + "pinia": "2.1.7", "vue": "3.4.27", "vue-router": "^4.3.2" }, diff --git a/apps/antd-view/src/app.vue b/apps/antd-view/src/app.vue index b73e7fd2..692545e0 100644 --- a/apps/antd-view/src/app.vue +++ b/apps/antd-view/src/app.vue @@ -1,8 +1,9 @@ diff --git a/apps/antd-view/src/bootstrap.ts b/apps/antd-view/src/bootstrap.ts index 8917f6b7..14ebe828 100644 --- a/apps/antd-view/src/bootstrap.ts +++ b/apps/antd-view/src/bootstrap.ts @@ -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 }); diff --git a/apps/antd-view/src/layouts/basic.vue b/apps/antd-view/src/layouts/basic.vue index 996113ac..031b5395 100644 --- a/apps/antd-view/src/layouts/basic.vue +++ b/apps/antd-view/src/layouts/basic.vue @@ -1,12 +1,13 @@ @@ -24,10 +25,7 @@ function handleUpdate(value: string) {
-