log logout

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-13 15:42:42 +07:00
parent 1fde1370fb
commit 78cbf0d85b
3 changed files with 4 additions and 2 deletions

View file

@ -4,4 +4,6 @@ const leave = `${env.API_URI}/leave`
export default {
checkin: () => `${leave}/check-in`,
checkTime: () => `${leave}/check-time`,
keycloakLogSSO: `${env.API_URI}/org/keycloak/log/sso`,
}

View file

@ -111,7 +111,8 @@ function onClickLogout() {
ok: 'ยืนยัน',
persistent: true,
}).onOk(async () => {
logout()
await http.post(config.API.keycloakLogSSO, { text: 'ออกจากระบบ' })
await logout()
})
}