From 4af2da6a690c3410f6743eb45dec61b99ce3bfb2 Mon Sep 17 00:00:00 2001 From: lizhichao Date: Fri, 20 Sep 2024 13:25:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BF=90=E7=BB=B4=E5=8F=AF=E8=A7=86?= =?UTF-8?q?=E5=8C=96=E9=A1=B5=E9=9D=A2=E5=85=8D=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/permission.js b/src/permission.js index 6416b6b..05858d8 100644 --- a/src/permission.js +++ b/src/permission.js @@ -70,7 +70,11 @@ router.beforeEach((to, from, next) => { if (meta.isAuth === false) { next() } else { - next('/login') + if (to.path.indexOf('/opsVisualization/alarmProcess') == '-1') { + next('/login') + } else { + next() + } } } })