feat: There is no way the router beforeEach
This commit is contained in:
+11
-3
@@ -76,10 +76,18 @@ router.beforeEach(function (to, from, next) {
|
|||||||
next({path:"bzqdfbStep1-4"+param})
|
next({path:"bzqdfbStep1-4"+param})
|
||||||
}else if (prcType === '5'){
|
}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'){
|
}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') {
|
} else if (prcType === '8') {
|
||||||
// 未符合项整改
|
// 未符合项整改
|
||||||
next({path:"wfhxzgStep5-1"+param})
|
next({path:"wfhxzgStep5-1"+param})
|
||||||
@@ -93,7 +101,7 @@ router.beforeEach(function (to, from, next) {
|
|||||||
next({path:"bzzqyjStep1-9"+param})
|
next({path:"bzzqyjStep1-9"+param})
|
||||||
}else if(prcType === '10'){
|
}else if(prcType === '10'){
|
||||||
//项目清单确认
|
//项目清单确认
|
||||||
next({path:"xmqdqrStep1-2"+param})
|
next({path:"xmqdqrStep1-3"+param})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("res : res =>", res);
|
console.log("res : res =>", res);
|
||||||
|
|||||||
Reference in New Issue
Block a user