From 17bf58ac59f5cb3e01ac028cdbc37a3c7c6737ed Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期五, 25 七月 2025 15:37:53 +0800
Subject: [PATCH] Merge branch 'ID1825-床旁副屏改版' into test
---
src/main.ts | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/main.ts b/src/main.ts
index 7bc77dd..9147bbe 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,9 +1,19 @@
+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'
-createApp(App).use(router).use(ElementPlus).use(Vant).mount('#app')
+if (import.meta.env.VITE_ENV === 'development') {
+// 如果需要在手机平板上打开控制台,安装一个这个
+ const vConsole = new VConsole()
+}
+const pinia = createPinia()
+
+createApp(App).use(router).use(pinia).use(ElementPlus).use(Vant).mount('#app')
--
Gitblit v1.8.0