25 lines
513 B
TypeScript
25 lines
513 B
TypeScript
import { createApp } from 'vue'
|
||
import App from './App.vue'
|
||
import router from './router';
|
||
|
||
import './styles/init.css';
|
||
|
||
import Vant from 'vant';
|
||
import 'vant/lib/index.css';
|
||
|
||
// vConsole:仅开发环境启用(避免生产包默认开启)
|
||
// if (import.meta.env.DEV) {
|
||
import('vconsole').then(({ default: VConsole }) => {
|
||
// eslint-disable-next-line no-new
|
||
new VConsole();
|
||
});
|
||
// }
|
||
|
||
const app = createApp(App)
|
||
.use(Vant)
|
||
.use(router);
|
||
|
||
router.isReady().then(() => {
|
||
app.mount('#app');
|
||
});
|