@@ -26,11 +26,16 @@ router.beforeEach((to, from, next) => {
next('/')
return
}
-
if (to.path === '/login') {
next('/home')
// return
+
+ if (!getToken()) {
+ next('/login-local')
+ return
+ }
next()
// onFilterRoutes(to, next)
})