-import { ref, reactive, onMounted, watch, onBeforeUnmount } from 'vue'
+import { ref, reactive, onMounted, watch, onBeforeUnmount, computed } from 'vue'
import { useQuasar } from 'quasar'
import { format } from 'date-fns'
import Camera from 'simple-vue-camera'
@@ -466,7 +466,12 @@ async function validateForm() {
}
}
-const mapRef = ref
| null>(null)
+const mapRefDesktop = ref | null>(null)
+const mapRefMobile = ref | null>(null)
+
+// Computed ref that returns the correct map ref based on screen size
+const mapRef = computed(() => ($q.screen.gt.xs ? mapRefDesktop.value : mapRefMobile.value))
+
const timeChickin = ref('') //เวลาเข้างาน,เวลาออกงาน
/** function ยืนยันการลงเวลาเข้า - ออก*/
@@ -777,13 +782,13 @@ watch(
-
+
+
+
+
+ !isDisabledCheckTime && openCamera()"
+ >
+
+
+
+
+
+
+
+
-