From 3b2e941a83ad49d3167df864a5a06a81ef944470 Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期三, 24 九月 2025 23:55:45 +0800
Subject: [PATCH] Merge branch 'ID2130-未签到页面优化' into test

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

diff --git a/src/main.ts b/src/main.ts
index 3b5707f..b3d124c 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,3 +1,4 @@
+import 'amfe-flexible';
 import { createApp } from 'vue'
 import ElementPlus from 'element-plus'
 import 'element-plus/dist/index.css'   
@@ -6,10 +7,17 @@
 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'
+import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
 
+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, { locale: zhCn }).use(Vant).mount('#app')

--
Gitblit v1.8.0