From 037551dcdfa8ba9554be3c494999a38f08ad117c Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期六, 26 七月 2025 11:33:37 +0800
Subject: [PATCH] ID1825-显示透析龄
---
src/main.ts | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/main.ts b/src/main.ts
index 3b5707f..9147bbe 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,13 @@
import './style.css'
import router from './router';
import App from './App.vue'
+import VConsole from 'vconsole'
+import { createPinia } from 'pinia'
+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')
+createApp(App).use(router).use(pinia).use(ElementPlus).use(Vant).mount('#app')
--
Gitblit v1.8.0