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