From a25c0340f4d9939d0e344997b7ff31f88719ae57 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Sun, 1 Jun 2025 10:54:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=87=AA=E6=A3=80=E6=89=98=E7=9B=98?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/check/index.vue | 2 +- src/router/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/check/index.vue b/src/components/check/index.vue index c6b574b..50d2bf4 100644 --- a/src/components/check/index.vue +++ b/src/components/check/index.vue @@ -186,7 +186,7 @@ const checkHandle1 = async () => { const res = await requireOutTray() res.forEach((item) => { const heatItem = heatList.value.find(heatItem => heatItem.command === item.moduleCode) - heatItem!.status = 'error' + heatItem!.status = item.trayExist ? 'error' : 'success' }) activeStep.value = 2 } diff --git a/src/router/index.ts b/src/router/index.ts index e53bb34..c65a1e2 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -11,7 +11,7 @@ const router = createRouter({ router.beforeEach((to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext) => { const systemStore = useSystemStore() - if (getToken() && systemStore.systemStatus.currentUser?.username) { + if (getToken() && (systemStore.systemStatus.currentUser?.username || import.meta.env.FT_NODE_ENV !== 'prod')) { if (to.name === 'login') { next({ name: from.name }) }