- DashBoard, Profile, Order Menu

This commit is contained in:
Paolo Arena
2019-12-31 00:45:06 +01:00
parent b70f0df084
commit 354d1c8b36
38 changed files with 846 additions and 193 deletions

View File

@@ -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('/')