From ae70424bc3bb8baa23f9cf2724ae4fb838dc0e19 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Fri, 17 May 2024 09:31:18 +0800 Subject: [PATCH 1/2] =?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 | 18 +++++++++--------- src/views/Upgrade.vue | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 8e49de86..ca7bf688 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,8 +10,8 @@ const routes: Array = [ { path: "/", // redirect重定向 - redirect: "/login" - // redirect: "/upgrade" + // redirect: "/login" + redirect: "/upgrade" }, { path: '/login', @@ -135,13 +135,13 @@ const router = createRouter({ router.beforeEach((to, from, next) => { // 系统维护 - // const toName = to.name === 'upgrade'; - // if (toName) { - // next(); - // } else { - // next({ name: 'upgrade' }); - // } - // return + const toName = to.name === 'upgrade'; + if (toName) { + next(); + } else { + next({ name: 'upgrade' }); + } + return // 检查路由是否存在 // 机房用户 let userInfo = JSON.parse(getCookie("userInfo") as any); diff --git a/src/views/Upgrade.vue b/src/views/Upgrade.vue index a3171921..67ee436b 100644 --- a/src/views/Upgrade.vue +++ b/src/views/Upgrade.vue @@ -5,9 +5,9 @@
- -
System maintenance
-
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.
+
System upgrading
+ +
Due to system server upgrades, we will carry out repairs on Friday, March 17th, from 9:30 AM to 16: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.
From 3d4f2939d2248c2a7c9ebec4ba522ba9a1317f81 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Fri, 17 May 2024 09:33:39 +0800 Subject: [PATCH 2/2] fix --- src/router/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index ca7bf688..8e49de86 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,8 +10,8 @@ const routes: Array = [ { path: "/", // redirect重定向 - // redirect: "/login" - redirect: "/upgrade" + redirect: "/login" + // redirect: "/upgrade" }, { path: '/login', @@ -135,13 +135,13 @@ const router = createRouter({ router.beforeEach((to, from, next) => { // 系统维护 - const toName = to.name === 'upgrade'; - if (toName) { - next(); - } else { - next({ name: 'upgrade' }); - } - return + // const toName = to.name === 'upgrade'; + // if (toName) { + // next(); + // } else { + // next({ name: 'upgrade' }); + // } + // return // 检查路由是否存在 // 机房用户 let userInfo = JSON.parse(getCookie("userInfo") as any);