From f7373ab33a33fc1bbd3f1c056a07b13d271065d7 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期五, 24 十一月 2023 08:51:47 +0800 Subject: [PATCH] 1.修改了飞行巡检的异常聚集度和复现率的描述,当具体异常数为0时,不显示该异常描述。 2.修改低中高风险文字 对应的绿黄红颜色 3.调整了跳转到飞行巡检页面时的布局 --- src/main.js | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/main.js b/src/main.js index d8d9357..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,15 @@ }) -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://localhost:8081' + +// axios.defaults.baseURL = 'http://192.168.1.8:8081' app.config.globalProperties.$http = axios app.use(ElMessage) -- Gitblit v1.9.3