2026-04-22 22:13:53 +08:00

25 lines
513 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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');
});