From 6c393d5bf78379861f8712bfc7ae17dabe947ce8 Mon Sep 17 00:00:00 2001 From: wxd <1627315083@qq.com> Date: Sun, 1 Dec 2024 13:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=BB=B4=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 28 ++++++++++++++-------------- src/views/Upgrade.vue | 8 ++++---- 2 files changed, 18 insertions(+), 18 deletions(-) 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.