mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 09:34:19 +08:00
wip: support vite
This commit is contained in:
11
src/main.ts
11
src/main.ts
@@ -6,18 +6,19 @@ import { setupStore } from '/@/store';
|
||||
import { setupAntd } from '/@/setup/ant-design-vue';
|
||||
import { setupErrorHandle } from '/@/setup/error-handle';
|
||||
import { setupGlobDirectives } from '/@/directives';
|
||||
import { setupI18n } from '/@/setup/i18n';
|
||||
import { setupI18n } from '/@/locales/setupI18n';
|
||||
import { setupProdMockServer } from '../mock/_createProductionServer';
|
||||
import { setApp } from '/@/setup/App';
|
||||
|
||||
import { registerGlobComp } from '/@/components/registerGlobComp';
|
||||
|
||||
import { isDevMode, isProdMode, isUseMock } from '/@/utils/env';
|
||||
|
||||
import '/@/design/index.less';
|
||||
|
||||
import '/@/locales/index';
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
registerGlobComp(app);
|
||||
|
||||
// Configure component library
|
||||
setupAntd(app);
|
||||
|
||||
@@ -51,5 +52,3 @@ if (isDevMode()) {
|
||||
if (isProdMode() && isUseMock()) {
|
||||
setupProdMockServer();
|
||||
}
|
||||
// Used to share app instances in other modules
|
||||
setApp(app);
|
||||
|
Reference in New Issue
Block a user