diff --git a/src/router/index.ts b/src/router/index.ts index 4bccbf98..74f1b8ad 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -11,8 +11,8 @@ const routes: Array = [ { path: "/", // redirect重定向 - redirect: "/Square" - // redirect: "/upgrade" + // redirect: "/Square" + redirect: "/upgrade" }, { @@ -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) diff --git a/src/views/Upgrade.vue b/src/views/Upgrade.vue index bf7e87ed..3d7bcc39 100644 --- a/src/views/Upgrade.vue +++ b/src/views/Upgrade.vue @@ -5,13 +5,13 @@
-
System upgrading
- + +
System maintenance
-
Due to the system server upgrade, we will start the upgrade from 9:30 am Hong Kong time on the weekend of October 20th until October 21st. During this time,
the AiDA system will be temporarily inaccessible. We apologize for any inconvenience this may cause and thank you for your understanding.
+ - +
The AiDA system cannot be accessed temporarily due to system server maintenance. We apologize for any inconvenience this may cause and thank you for your understanding.