环境参数判断调整
This commit is contained in:
parent
2125809e41
commit
470c223a59
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user