fixing
This commit is contained in:
parent
01a257c5c2
commit
56aa900ea3
1 changed files with 2 additions and 4 deletions
|
|
@ -77,10 +77,8 @@ const router = createRouter({
|
||||||
|
|
||||||
// authen with keycloak client
|
// authen with keycloak client
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
if (to.meta.Auth) {
|
if (keycloak.authenticated === undefined && to.meta.Auth) {
|
||||||
if (keycloak.authenticated === undefined && to.meta.Auth) {
|
kcLogout();
|
||||||
kcLogout();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue