From 92479b4fd09bc333675fbd58fd638ac97131d9dc Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期四, 24 七月 2025 15:32:06 +0800
Subject: [PATCH] gx打包路径
---
src/main.ts | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/main.ts b/src/main.ts
index a733e5c..9a03e28 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -3,12 +3,15 @@
import 'element-plus/dist/index.css'
import Vant from 'vant'
import 'vant/lib/index.css'
+import './style.css'
import router from './router';
import App from './App.vue'
+import VConsole from 'vconsole'
+if (import.meta.env.VITE_ENV === 'development') {
// 如果需要在手机平板上打开控制台,安装一个这个
-// import VConsole from 'vconsole'
-// const vConsole = new VConsole()
-// console.log('vConsole is ready.')
+ const vConsole = new VConsole()
+}
+
createApp(App).use(router).use(ElementPlus).use(Vant).mount('#app')
--
Gitblit v1.8.0