环境参数判断调整

This commit is contained in:
fan 2022-07-15 16:57:17 +08:00
parent 2125809e41
commit 470c223a59

View File

@ -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;