From cef6591ddd244d41696504a53a0aebe7a5980f6a Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期三, 22 十一月 2023 14:36:58 +0800 Subject: [PATCH] 1.用import异常图标 2.修改飞行巡检的时间格式 3.修改了部分网络请求为api函数形式 --- src/main.js | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main.js b/src/main.js index bfaa55f..f31b214 100644 --- a/src/main.js +++ b/src/main.js @@ -8,10 +8,10 @@ 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' const app = createApp(App) +const pinia = createPinia() router.beforeEach((to,from,next)=>{ const token = Cookie.get('token') @@ -27,10 +27,8 @@ }) -const loadingStore = useLoadingStore(pinia) -router.afterEach((to, from) => { - loadingStore.clearLoading() -}) + + // 鏈湴 -- Gitblit v1.9.3