diff --git a/src/components/AscGISMap.vue b/src/components/AscGISMap.vue index 244641e..ec1eb0b 100644 --- a/src/components/AscGISMap.vue +++ b/src/components/AscGISMap.vue @@ -197,7 +197,7 @@ async function initializeMap() { 'esri/views/MapView', 'esri/geometry/Point', 'esri/Graphic', - 'esri/layers/TileLayer', + // 'esri/layers/TileLayer', ]) // Set apiKey // esriConfig.apiKey = diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index b6f3ce1..fde8b97 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -298,9 +298,17 @@ async function stopChecking() { function identifyCameraType(label: string): 'front' | 'back' | 'unknown' { const lowerLabel = label.toLowerCase() - if (lowerLabel.includes('front') || lowerLabel.includes('user') || lowerLabel.includes('face')) { + if ( + lowerLabel.includes('front') || + lowerLabel.includes('user') || + lowerLabel.includes('face') + ) { return 'front' - } else if (lowerLabel.includes('back') || lowerLabel.includes('environment') || lowerLabel.includes('rear')) { + } else if ( + lowerLabel.includes('back') || + lowerLabel.includes('environment') || + lowerLabel.includes('rear') + ) { return 'back' } return 'unknown' @@ -356,8 +364,9 @@ async function changeCamera(targetCameraType?: 'front' | 'back') { return } - const matchingCameras = devices.filter((device: any) => - identifyCameraType(device.label || '') === targetCameraType + const matchingCameras = devices.filter( + (device: any) => + identifyCameraType(device.label || '') === targetCameraType ) if (matchingCameras.length > 0) { @@ -470,7 +479,9 @@ 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 mapRef = computed(() => + $q.screen.gt.xs ? mapRefDesktop.value : mapRefMobile.value +) const timeChickin = ref('') //เวลาเข้างาน,เวลาออกงาน @@ -923,7 +934,10 @@ watch(
-

*หมายเหตุ คลิกลงเวลาเข้างานแล้วระบบจะลงเวลาทันที -

+

-->
-

*หมายเหตุ คลิกลงเวลาเข้างานแล้วระบบจะลงเวลาทันที -

+

-->
-

*หมายเหตุ คลิกลงเวลาเข้างานแล้วระบบจะลงเวลาทันที -

+

-->