fix bug load

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-08-18 11:09:00 +07:00
parent 9b03f29353
commit 6d01c409c5

View file

@ -412,19 +412,18 @@ async function getCheck() {
} }
/** ปิด popup แสดงการลงเวลา*/ /** ปิด popup แสดงการลงเวลา*/
async function onClickConfirm() { async function onClickConfirm() {
showLoader() try {
if (!statusCheckin.value) { showLoader()
statusCheckin.value = true cameraIsOn.value = false
img.value = undefined
modalTime.value = false
if (!statusCheckin.value) {
statusCheckin.value = true
}
await startChecking()
} finally {
hideLoader()
} }
// await fetchCheckTime()
// fetchCheckStatus()
startChecking()
cameraIsOn.value = false
img.value = undefined
modalTime.value = false
} }
/** เลือกสถานที่ทำงาน*/ /** เลือกสถานที่ทำงาน*/