From d02fda521111b27ada7712b7ce57f3a20177bc88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Fri, 1 Nov 2024 17:41:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E5=B7=A5=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw-ui/src/views/login.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw-ui/src/views/login.vue b/hw-ui/src/views/login.vue index a7788c8..0a38ce9 100644 --- a/hw-ui/src/views/login.vue +++ b/hw-ui/src/views/login.vue @@ -224,10 +224,13 @@ export default { } this.$store.dispatch('Login', this.loginForm).then(() => { let data = this.options.find(v => v.processId === this.loginForm.processId) || {} - let routeData = this.floorData.find(v => v.floor === data.processFloor && v.processId === data.processId) || { - floor: 4, - processId: 44, - route: '/board/assemble'//装配 + let routeData = this.floorData.find(v => v.floor === data.processFloor && v.processId === data.processId) || null + if(this.$route?.query?.isStationId === 'true' && !routeData){ + routeData = { + floor: 4, + processId: 44, + route: '/board/assemble'//装配 + } } let query = { processName: this.loginForm.processName } routeData.query = query