src/main.ts
@@ -6,5 +6,12 @@ import './style.css' import router from './router'; import App from './App.vue' import VConsole from 'vconsole' if (import.meta.env.VITE_ENV === 'development') { // 如果需要在手机平板上打开控制台,安装一个这个 const vConsole = new VConsole() } createApp(App).use(router).use(ElementPlus).use(Vant).mount('#app')