log logout

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-13 15:26:23 +07:00
parent 4d11bc01fc
commit 32b83298cd
3 changed files with 34 additions and 18 deletions

View file

@ -46,7 +46,7 @@ onMounted(async () => {
});
async function checkUser() {
await http
await http
.get(config.API.profilePosition())
.then(async (res) => {
const data = await res.data.result;
@ -55,7 +55,6 @@ async function checkUser() {
if (data.avatarName) {
await getImg(data.profileId, data.avatarName);
} else {
dataStore.profileImg = avatar;
}
})
@ -145,8 +144,9 @@ const doLogout = () => {
dialogConfirm(
$q,
async () => {
await http.post(config.API.keycloakLogSSO, { text: "ออกจากระบบ" });
// authen with client
logout();
await logout();
},
"ยืนยันการออกจากระบบ",
"ต้องการออกจากระบบใช่หรือไม่"