@@ -145,6 +145,7 @@ router.beforeEach(async (to, from, next) => {
next()
return
}
+
next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
})