feat: There is no way the router beforeEach

This commit is contained in:
super_liu
2021-09-27 15:38:34 +08:00
parent 701ff4e07a
commit 31db4ba8b5
+11 -3
View File
@@ -76,10 +76,18 @@ router.beforeEach(function (to, from, next) {
next({path:"bzqdfbStep1-4"+param})
}else if (prcType === '5'){
//标准项目合规评估 标准维度
next({path:"xmpgStep1-2"+param})
if(path === "/xmpgStep2" || path === "/xmpgStep1" || path === "/xmpgStep1-2"){
next({path:"xmpgStep1-2"+param})
}else {
next({path:"xmpgStep1-7"+param})
}
}else if(prcType === '6'){
//标准项目合规评估 项目维度
next({path:"xmpg2Step1-2"+param})
if(path === "/xmpg2Step1" || path === "/xmpg2Step2" || path === "/xmpg2Step1-2"){
next({path:"xmpg2Step1-2"+param})
}else {
next({path:"xmpg2Step1-12"+param})
}
} else if (prcType === '8') {
// 未符合项整改
next({path:"wfhxzgStep5-1"+param})
@@ -93,7 +101,7 @@ router.beforeEach(function (to, from, next) {
next({path:"bzzqyjStep1-9"+param})
}else if(prcType === '10'){
//项目清单确认
next({path:"xmqdqrStep1-2"+param})
next({path:"xmqdqrStep1-3"+param})
}
}
console.log("res : res =>", res);