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;