2022-09-07 15:10:07 +08:00

29 lines
541 B
TypeScript

import { createApp } from 'vue';
import App from './App.vue';
import { nutUiComponents } from './plugins/nutUI';
import { i18n } from '/@/i18n';
import router from '/@/router';
import store from '/@/store';
import './assets/font/iconfont.css';
import './assets/app.css';
// import 'amfe-flexible';
import 'vue-global-api';
const app = createApp(App);
// 路由
app.use(router);
// 国际化
app.use(i18n);
// 状态管理
app.use(store);
// nutUi按需加载
nutUiComponents.forEach((item) => {
app.use(item);
});
app.mount('#app');