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 }) }