系统维护
This commit is contained in:
@@ -13,8 +13,8 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
path: "/",
|
path: "/",
|
||||||
// redirect重定向
|
// redirect重定向
|
||||||
meta:{enter:'all',},
|
meta:{enter:'all',},
|
||||||
redirect: "/Square"
|
// redirect: "/Square"
|
||||||
// redirect: "/upgrade"
|
redirect: "/upgrade"
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -412,17 +412,17 @@ const setViewsIncrease = (value:any)=>{
|
|||||||
let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN','emailVerify']//指定页面系统维护也可以访问
|
let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN','emailVerify']//指定页面系统维护也可以访问
|
||||||
router.beforeEach((to:any, from, next) => {
|
router.beforeEach((to:any, from, next) => {
|
||||||
// 系统维护
|
// 系统维护
|
||||||
// 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 herfData = window.location.search.substring(1)
|
let herfData = window.location.search.substring(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user