取消维护

This commit is contained in:
X1627315083
2024-09-12 17:27:41 +08:00
parent b9c2710caa
commit 254f509604

View File

@@ -235,17 +235,17 @@ router.beforeEach((to, from, next) => {
let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN']//指定页面系统维护也可以访问 let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN']//指定页面系统维护也可以访问
// 系统维护 // 系统维护
const toName = to.name === 'upgrade'; // const toName = to.name === 'upgrade';
if(upgradeList.indexOf(to.path) > -1){ // if(upgradeList.indexOf(to.path) > -1){
next(); // next();
}else{ // }else{
if (toName) { // if (toName) {
next(); // next();
} else { // } else {
next({ name: 'upgrade' }); // next({ name: 'upgrade' });
} // }
} // }
return // return
// 检查路由是否存在 // 检查路由是否存在
// 机房用户 // 机房用户
let userInfo = JSON.parse(getCookie("userInfo") as any); let userInfo = JSON.parse(getCookie("userInfo") as any);