- DashBoard, Profile, Order Menu
This commit is contained in:
@@ -50,7 +50,12 @@ Router.beforeEach(async (to: IMyRoute, from: IMyRoute, next) => {
|
||||
// await LoginStore.actions.checkUserSession();
|
||||
// }
|
||||
|
||||
// console.log(to, from)
|
||||
/*
|
||||
if (!from || !to || from.matched.length <= 0) {
|
||||
next()
|
||||
return
|
||||
}
|
||||
*/
|
||||
|
||||
if (from.name && from.matched[0].name === to.name && from.meta.isModal) {
|
||||
next()
|
||||
@@ -124,7 +129,7 @@ Router.beforeEach(async (to: IMyRoute, from: IMyRoute, next) => {
|
||||
// next('/')
|
||||
}
|
||||
|
||||
return Router.push({ name: 'login' })
|
||||
return Router.push({ name: 'pages.SignIn' })
|
||||
}
|
||||
} else if (to.matched.some((m) => m.meta.noAuth) && UserStore.state.isLogged) {
|
||||
next('/')
|
||||
|
||||
Reference in New Issue
Block a user