From 62b7e32e3e015f4b28d9a57dcb25bbcc9af4e98c Mon Sep 17 00:00:00 2001 From: WangXiaoDong <1627315083@qq.com> Date: Tue, 9 Jul 2024 20:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E6=8A=A4=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 30 +++++++++++++++--------------- src/views/Upgrade.vue | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index bdfc0b77..e0c45c89 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -11,9 +11,9 @@ const routes: Array = [ path: "/", // redirect重定向 // redirect: "/login" - // redirect: "/upgrade" - name: "HomeRecommend", - component: _import('HomeRecommend'), + redirect: "/upgrade" + // name: "HomeRecommend", + // component: _import('HomeRecommend'), }, { path: '/login', @@ -162,18 +162,18 @@ if (vuex_setSystemUser == 0 || vuex_setSystemUser == 1) { router.beforeEach((to, 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 + 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 // 检查路由是否存在 // 机房用户 let userInfo = JSON.parse(getCookie("userInfo") as any); diff --git a/src/views/Upgrade.vue b/src/views/Upgrade.vue index 16bbeb86..baf0ff74 100644 --- a/src/views/Upgrade.vue +++ b/src/views/Upgrade.vue @@ -8,9 +8,9 @@
System upgrading
- +
Due to system server upgrades, We will be upgrading from 9:30 am Hong Kong time on Tuesday, July 9 until further notice. 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 upgrading from 9:30 am Hong Kong time on Tuesday, July 9 until 17:00 PM on Tuesday, July 9. During this period, access to the AiDA system will be temporarily unavailable.
We apologize for any inconvenience this may cause and appreciate your understanding.
+