updateAuthen
This commit is contained in:
parent
ff93b49bc0
commit
ba933b54f9
5 changed files with 60 additions and 21 deletions
|
|
@ -74,7 +74,7 @@ const router = createRouter({
|
|||
// authen with keycloak client
|
||||
router.beforeEach((to, from, next) => {
|
||||
if (to.meta.Auth) {
|
||||
if (keycloak.authenticated === undefined && to.meta.Auth) {
|
||||
if (keycloak.authenticated === false && to.meta.Auth) {
|
||||
window.location.href = "/login";
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue