From 851a709a8342236ce428c9efaf8d735eeb055e43 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Tue, 4 Feb 2025 09:20:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 26 +++++++++++++------------- src/views/Upgrade.vue | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index b123e958..49ba410e 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" }, { @@ -321,17 +321,17 @@ 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 3d7bcc39..7544020f 100644 --- a/src/views/Upgrade.vue +++ b/src/views/Upgrade.vue @@ -10,8 +10,8 @@ - -
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.
+
Due to system server upgrades, we will be upgrading from 9:30am (HKT) on Tuesday, February 4th to Wednesday, February 5th. During this period, the AiDA system will be temporarily inaccessible.
We sincerely apologize for any inconvenience caused and thank you for your understanding
+