แก้คำผิด

This commit is contained in:
Warunee Tamkoo 2024-07-25 12:11:41 +07:00
parent c1f0ac7939
commit 177b85a6a9
2 changed files with 2 additions and 16 deletions

View file

@ -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')

View file

@ -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 = ''