From 30657f509d3f5e22176600ec7deeea8652595f41 Mon Sep 17 00:00:00 2001 From: wxd <1627315083@qq.com> Date: Sun, 20 Oct 2024 09:31:32 +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 340c56f7..6875e1e1 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" }, { @@ -267,17 +267,17 @@ router.beforeEach((to:any, from, next) => { let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN']//指定页面系统维护也可以访问 // 系统维护 - // 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 b6b1dc82..bf7e87ed 100644 --- a/src/views/Upgrade.vue +++ b/src/views/Upgrade.vue @@ -8,10 +8,10 @@
System upgrading
- +
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.
+