From b01a375acc2a6714d9ea9ddd13bd0b2dbd4b3790 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 15 Dec 2025 13:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=8C=87=E5=AE=9A=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E4=B8=8B=E7=B3=BB=E7=BB=9F=E7=BB=B4=E6=8A=A4=E6=9C=9F=E9=97=B4?= =?UTF-8?q?=E4=B9=9F=E5=8F=AF=E4=BB=A5=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index b6606e7c..aa9b5968 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -511,7 +511,11 @@ router.beforeEach((to: any, from, next) => { if (isTimeRangePassed(time) == 'in_progress') { // 系统维护 const toName = to.name === 'upgrade'; - if(upgradeList.indexOf(to.path) > -1){ + if(to.query.status == 'admin'){ + localStorage.setItem('isAdminVisit', 'true') + } + const isAdminVisit = localStorage.getItem('isAdminVisit') == 'true' + if(upgradeList.indexOf(to.path) > -1 || isAdminVisit){ next(); }else{ if (toName) { @@ -521,6 +525,7 @@ router.beforeEach((to: any, from, next) => { } } } else { + localStorage.setItem('isAdminVisit', 'false') // 机房用户 let herfData = window.location.search.substring(1);