Browse Source

fix:自检托盘状态

master
guoapeng 2 months ago
parent
commit
a25c0340f4
  1. 2
      src/components/check/index.vue
  2. 2
      src/router/index.ts

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

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

Loading…
Cancel
Save