From 73cb3ec2b1660610e3621d7614ad308f2c19331d Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期四, 16 十一月 2023 17:19:38 +0800
Subject: [PATCH] 1.修改了综合风险模型表格数据的获取 2.修改了时间选择器

---
 src/main.js |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/main.js b/src/main.js
index 92e15e6..bfaa55f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -8,7 +8,8 @@
 import { ElMessage } from 'element-plus'
 // 鍏ㄥ眬寮曞叆鏍峰紡
 import 'element-plus/theme-chalk/src/index.scss'
-
+import pinia from './stores/index';
+import { useLoadingStore } from "@/stores/loadingStore";
 
 const app = createApp(App)
 
@@ -24,15 +25,25 @@
     next()
   }
 })
+
+
+const loadingStore = useLoadingStore(pinia)
+router.afterEach((to, from) => {
+  loadingStore.clearLoading()
+})
+
+
 // 鏈湴
 // axios.defaults.baseURL = 'http://localhost:8081'
 // 閮ㄧ讲
 axios.defaults.baseURL = 'http://114.215.109.124:8803'
+
+// axios.defaults.baseURL = 'http://192.168.1.8:8081'
 app.config.globalProperties.$http = axios
 
 app.use(ElMessage)
 app.config.globalProperties.$message = ElMessage
 app.use(router)
-
+app.use(pinia)
 
 app.mount('#app')

--
Gitblit v1.9.3