no message

This commit is contained in:
Kittapath 2023-03-21 09:56:49 +07:00
parent 654fbad6e1
commit 302354b3de

View file

@ -65,20 +65,20 @@ const router = createRouter({
// ]
// })
router.beforeEach((to, from, next) => {
// if (to.meta.Auth) {
// if (!keycloak.authenticated) {
// keycloak.login({
// redirectUri: `${window.location.protocol}//${window.location.host}${to.path}`,
// locale: 'th'
// })
// } else {
// // keycloak.updateToken(60);
// next()
// }
// } else {
// next()
// }
next()
if (to.meta.Auth) {
if (!keycloak.authenticated) {
keycloak.login({
redirectUri: `${window.location.protocol}//${window.location.host}${to.path}`,
locale: 'th'
})
} else {
// keycloak.updateToken(60);
next()
}
} else {
next()
}
// next()
})
export default router