เพิม่ปุ่มลบ ประวัติการศึกษา

This commit is contained in:
Kittapath 2023-03-20 13:01:27 +07:00
parent e7198525a2
commit 6b78719b59
16 changed files with 432 additions and 147 deletions

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