diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index e9795bf..a654b7d 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -36,7 +36,6 @@ const link = ref(""); */ onMounted(async () => { await fetchTotolNotificate(); - checkUser(); if (keycloak.tokenParsed != null) { fullname.value = keycloak.tokenParsed.name; } @@ -69,6 +68,8 @@ async function fetchTotolNotificate() { .get(config.API.msgNotificateTotal) .then((res) => { totalNoti.value = res.data.result; + // check user in system + checkUser(); }) .catch((err) => { messageError($q, err);