From 470c223a59b4ec0ddfd0c641ff75947f24f7e25c Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 15 Jul 2022 16:57:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=82=E6=95=B0=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E8=B0=83=E6=95=B4?= 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 4b1730460..beebb2bad 100644 --- a/src/permission.js +++ b/src/permission.js @@ -77,7 +77,7 @@ router.beforeEach( async (to, from, next) => { if (to.path.includes('login')) { project = to.query.project; const split = to.path.split('/')[1]; - if (process.env.VUE_APP_PRO) { + if (process.env.VUE_APP_PRO && process.env.VUE_APP_PRO !== 'local-test') { project = localPackageProject[process.env.VUE_APP_PRO + split]; } else if (split == 'design') { project = project ? split + project : split;