แก้คำผิด
This commit is contained in:
parent
c1f0ac7939
commit
177b85a6a9
2 changed files with 2 additions and 16 deletions
|
|
@ -92,12 +92,12 @@ async function onClickDelete(id: string, index: number) {
|
|||
function onClickLogout() {
|
||||
$q.dialog({
|
||||
title: 'ยืนยันการออกจากระบบ',
|
||||
message: `ต้องการออกจากระบบใช้หรือไม่?`,
|
||||
message: `ต้องการออกจากระบบใช่หรือไม่?`,
|
||||
cancel: 'ยกเลิก',
|
||||
ok: 'ยืนยัน',
|
||||
persistent: true,
|
||||
}).onOk(async () => {
|
||||
// keycloak.logout()
|
||||
keycloak.logout()
|
||||
// authen with keycloak client
|
||||
await deleteCookie('BMAHRIS_KEYCLOAK_IDENTITY')
|
||||
await deleteCookie('BMAHRIS_KEYCLOAK_REFRESH')
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import keycloak from '@/plugins/keycloak'
|
|||
|
||||
// import Type
|
||||
import type { FormRef } from '@/interface/response/checkin'
|
||||
import type { Noti } from '@/interface/response/Main'
|
||||
import type { notiType } from '@/interface/index/Main'
|
||||
|
||||
// import components
|
||||
|
|
@ -286,19 +285,6 @@ async function onClickConfirm() {
|
|||
dialogTime.value = false
|
||||
}
|
||||
|
||||
/** function logout*/
|
||||
function onClickLogout() {
|
||||
$q.dialog({
|
||||
title: 'ยืนยันการออกจากระบบ',
|
||||
message: `ต้องการออกจากระบบใช้หรือไม่?`,
|
||||
cancel: 'ยกเลิก',
|
||||
ok: 'ยืนยัน',
|
||||
persistent: true,
|
||||
}).onOk(() => {
|
||||
keycloak.logout()
|
||||
})
|
||||
}
|
||||
|
||||
function updateWorkplace() {
|
||||
if (workplace.value === 'in-place') {
|
||||
useLocation.value = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue