This commit is contained in:
X1627315083
2024-10-21 10:59:24 +08:00
parent 6aa0028287
commit 8256990be4

View File

@@ -320,18 +320,18 @@ let setMurmur = (id:any)=> {
router.beforeEach((to:any, from, next) => {
let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN','emailVerify']//指定页面系统维护也可以访问
// 系统维护
const toName = to.name === 'upgrade';
if(upgradeList.indexOf(to.path) > -1){
next();
}else{
if (toName) {
next();
} else {
next({ name: 'upgrade' });
}
}
return
// // 系统维护
// const toName = to.name === 'upgrade';
// if(upgradeList.indexOf(to.path) > -1){
// next();
// }else{
// if (toName) {
// next();
// } else {
// next({ name: 'upgrade' });
// }
// }
// return
// 检查路由是否存在
// 机房用户
let herfData = window.location.search.substring(1)