From 72085226bc9f82a9129b8fbcd17fab1edf9ef270 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 05 一月 2024 15:08:19 +0800
Subject: [PATCH] 1. 修复飞行巡检模块中有效率异常详情弹出框无法正常显示的bug; 2.优化各异常类型的折线图配置项生成逻辑;

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

diff --git a/src/main.js b/src/main.js
index bfaa55f..94d4bec 100644
--- a/src/main.js
+++ b/src/main.js
@@ -8,10 +8,12 @@
 import { ElMessage } from 'element-plus'
 // 鍏ㄥ眬寮曞叆鏍峰紡
 import 'element-plus/theme-chalk/src/index.scss'
-import pinia from './stores/index';
-import { useLoadingStore } from "@/stores/loadingStore";
+import { createPinia } from 'pinia'
+
+import {url} from '@/api/index.js'
 
 const app = createApp(App)
+const pinia = createPinia()
 
 router.beforeEach((to,from,next)=>{
   const token = Cookie.get('token')
@@ -27,16 +29,13 @@
 })
 
 
-const loadingStore = useLoadingStore(pinia)
-router.afterEach((to, from) => {
-  loadingStore.clearLoading()
-})
+// 閮ㄧ讲
+axios.defaults.baseURL = url
+
 
 
 // 鏈湴
 // 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

--
Gitblit v1.9.3