From c573cd85962d0f2ae1dd542f3e10e4097e63091c Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期五, 12 九月 2025 11:42:18 +0800
Subject: [PATCH] ID1766-暂存

---
 src/main.ts |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/main.ts b/src/main.ts
index a733e5c..267b11f 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,14 +1,21 @@
+import 'amfe-flexible';
 import { createApp } from 'vue'
 import ElementPlus from 'element-plus'
 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'
+import { createPinia } from 'pinia'
+import '@/assets/css/iconfont.css'
+if (import.meta.env.VITE_ENV === 'development') {
 // 如果需要在手机平板上打开控制台,安装一个这个
-// import VConsole from 'vconsole'
-// const vConsole = new VConsole()
-// console.log('vConsole is ready.')
+    const vConsole = new VConsole()
+}
+const pinia = createPinia()
 
-createApp(App).use(router).use(ElementPlus).use(Vant).mount('#app')
+const app = createApp(App)
+
+app.use(router).use(pinia).use(ElementPlus).use(Vant).mount('#app')

--
Gitblit v1.8.0