From e43e598f0d0d36855b7c5f2518f62d3d406a8aec Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期二, 09 九月 2025 16:47:12 +0800
Subject: [PATCH] Merge branch 'master' of http://dh.leon056.com:7499/r/data2/Single_application into ID1766-添加推送登录功能

---
 src/main.ts |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

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

--
Gitblit v1.8.0