|
@@ -19,6 +19,7 @@ router.beforeEach((to, from, next) => {
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
next()
|
|
next()
|
|
|
|
+ return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (to.meta.isAuth) {
|
|
if (to.meta.isAuth) {
|
|
@@ -35,6 +36,7 @@ router.beforeEach((to, from, next) => {
|
|
if (to.matched.length === 0) {
|
|
if (to.matched.length === 0) {
|
|
ElMessage.error("无效页面,自动返回首页")
|
|
ElMessage.error("无效页面,自动返回首页")
|
|
next("/home")
|
|
next("/home")
|
|
|
|
+ return
|
|
}
|
|
}
|
|
next()
|
|
next()
|
|
});
|
|
});
|