This commit is contained in:
Warunee Tamkoo 2024-08-16 09:59:36 +07:00
parent c7d672aeda
commit 113081b5ed

View file

@ -36,7 +36,6 @@ const link = ref<string>("");
*/
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);