From 2dd755a43fc17c3389d35c89d0df7e4ca9ea985f Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Wed, 27 Mar 2024 10:26:14 +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 | 17 +++++++++-------- src/views/Upgrade.vue | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index fa7a54bf..d190cdc8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -8,8 +8,8 @@ const routes: Array = [ { path: "/", // redirect重定向 - redirect: "/login" - // redirect: "/upgrade" + // redirect: "/login" + redirect: "/upgrade" }, { path: '/login', @@ -70,12 +70,13 @@ const router = createRouter({ }) router.beforeEach((to, from, next) => { // 系统维护 - // const toName = to.name === 'upgrade'; - // if (toName) { - // next(); - // } else { - // next({ name: 'upgrade' }); - // } + const toName = to.name === 'upgrade'; + if (toName) { + next(); + } else { + next({ name: 'upgrade' }); + } + return // 检查路由是否存在 // 机房用户 let murmurStr: any = localStorage.getItem('murmurStr') diff --git a/src/views/Upgrade.vue b/src/views/Upgrade.vue index 32293322..a3171921 100644 --- a/src/views/Upgrade.vue +++ b/src/views/Upgrade.vue @@ -7,7 +7,7 @@
System maintenance
-
Due to system server upgrades, we will be conducting maintenance on Monday, March 4th, from 10:00 AM to 3:00 PM Hong Kong time. During this period, access to the AiDA system will be temporarily unavailable.
We apologize for any inconvenience this may cause and appreciate your understanding.
+
Due to system server upgrades, we will be conducting maintenance on Monday, March 27th, from 10:30 AM to 11:30 PM Hong Kong time. During this period, access to the AiDA system will be temporarily unavailable.
We apologize for any inconvenience this may cause and appreciate your understanding.