feat: Feature/pro docs (#70)

* chore: merge main

* feat: update docs

* feat: remove coze-assistant

* feat: add watermark plugin

* feat: update preferences

* feat: update docs

---------

Co-authored-by: vince <vince292007@gmail.com>
This commit is contained in:
Vben
2024-07-28 14:29:05 +08:00
committed by GitHub
parent 14538f7ed5
commit 376fd17a61
225 changed files with 7731 additions and 1784 deletions

View File

@@ -1,10 +1,9 @@
import { createApp } from 'vue';
import { preferences } from '@vben/preferences';
import '@vben/styles';
import '@vben/styles/antd';
import { loadMessages, setupI18n } from '#/locales';
import { setupI18n } from '#/locales';
import { setupStore } from '#/store';
import App from './app.vue';
@@ -14,11 +13,7 @@ async function bootstrap(namespace: string) {
const app = createApp(App);
// 国际化 i18n 配置
await setupI18n(app, {
defaultLocale: preferences.app.locale,
loadMessages,
missingWarn: !import.meta.env.PROD,
});
await setupI18n(app);
// 配置 pinia-store
await setupStore(app, { namespace });