From efdd241d2c8c828b113e5b816930b07a4b43e296 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 31 Dec 2019 09:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E8=B7=AF=E7=94=B1=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/permission.js b/src/permission.js index feb217cbb..88cb2fb33 100644 --- a/src/permission.js +++ b/src/permission.js @@ -53,7 +53,7 @@ function getRouteInfo(to) { loginPath = loginDesignGzbPage; clientId = LoginParams.Design.clientId; } else if (isDesignPage(toRoutePath)) { - loginPath = loginDesignPageMenu[current_session]; + loginPath = loginDesignPageMenu[current_session] || loginDesignPage; clientId = LoginParams.Design.clientId; if (current_session && !current_session.startsWith('design')) { removeToken(); @@ -65,7 +65,7 @@ function getRouteInfo(to) { loginPath = loginGzbPage; clientId = null; } else { - loginPath = loginPageMenu[current_session]; + loginPath = loginPageMenu[current_session] || loginPath; clientId = null; if (current_session && current_session.startsWith('design')) { removeToken();