mirror of
https://github.com/xxxsf/vue3-h5-template.git
synced 2025-04-05 20:35:49 +08:00
21 lines
456 B
TypeScript
21 lines
456 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 { setupStore } from '/@/store';
|
|
import './assets/font/iconfont.css';
|
|
import './assets/app.css';
|
|
|
|
const app = createApp(App);
|
|
app.use(router);
|
|
|
|
setupStore(app);
|
|
app.use(i18n);
|
|
app.mount('#app');
|
|
|
|
// nutUi按需加载
|
|
nutUiComponents.forEach((item) => {
|
|
app.use(item);
|
|
});
|