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() + } } } })