log logout
This commit is contained in:
parent
1fde1370fb
commit
78cbf0d85b
3 changed files with 4 additions and 2 deletions
|
|
@ -4,4 +4,6 @@ const leave = `${env.API_URI}/leave`
|
||||||
export default {
|
export default {
|
||||||
checkin: () => `${leave}/check-in`,
|
checkin: () => `${leave}/check-in`,
|
||||||
checkTime: () => `${leave}/check-time`,
|
checkTime: () => `${leave}/check-time`,
|
||||||
|
|
||||||
|
keycloakLogSSO: `${env.API_URI}/org/keycloak/log/sso`,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,8 @@ function onClickLogout() {
|
||||||
ok: 'ยืนยัน',
|
ok: 'ยืนยัน',
|
||||||
persistent: true,
|
persistent: true,
|
||||||
}).onOk(async () => {
|
}).onOk(async () => {
|
||||||
logout()
|
await http.post(config.API.keycloakLogSSO, { text: 'ออกจากระบบ' })
|
||||||
|
await logout()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,5 +63,4 @@ export default defineConfig({
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
include: ['esri-loader'],
|
include: ['esri-loader'],
|
||||||
},
|
},
|
||||||
base: './',
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue