refactor: Integrate the @vben-core/shared package

This commit is contained in:
vben
2024-07-30 21:05:03 +08:00
parent e6403868fc
commit cf0ec053e4
223 changed files with 330 additions and 328 deletions

View File

@@ -1,5 +1,6 @@
import { createApp } from 'vue';
import { useAccessDirective } from '@vben/access';
import '@vben/styles';
import '@vben/styles/antd';
@@ -15,9 +16,12 @@ async function bootstrap(namespace: string) {
// 国际化 i18n 配置
await setupI18n(app);
// 配置 pinia-store
// 配置 pinia-tore
await setupStore(app, { namespace });
// 安装权限指令
useAccessDirective(app);
// 配置路由及路由守卫
app.use(router);