From 7c46ad5c62213aa1c174c3276b6fed15f71483d3 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Tue, 25 Apr 2023 16:22:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96project=E4=B8=BAnull=E6=97=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=89=BE=E5=88=B0=E9=A1=B5=E9=9D=A2=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/permission.js b/src/permission.js index af8fef76d..b0dff606c 100644 --- a/src/permission.js +++ b/src/permission.js @@ -14,7 +14,7 @@ const whiteList = ['/login', '/design/login', '/loginNew', '/gzzbxy/relay', '/au function getRouteInfo(to) { let loginPath = ''; const markKey = store.state.projectConfig.markKey || getSessionStorage('project'); - loginPath = markKey == 'login' ? '/login' : '/login?project=' + markKey; + loginPath = !markKey || markKey == 'login' ? '/login' : '/login?project=' + markKey; if (to.query.projectDevice && to.query.type && loginPath.includes('?')) { loginPath = `${loginPath}&projectDevice=${to.query.projectDevice}&type=${to.query.type}`; } else if (to.query.projectDevice && to.query.type) {