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);