mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-06 03:57:50 +08:00
29 lines
541 B
TypeScript
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');
|