diff --git a/src/components/FormTime.vue b/src/components/FormTime.vue index 0f441b8..d77ef68 100644 --- a/src/components/FormTime.vue +++ b/src/components/FormTime.vue @@ -23,7 +23,7 @@ const props = defineProps({ }, }) -const dataById = ref([]) +const dataByIdVal = ref([]) const date = ref(null) const checkboxIn = ref(false) const checkboxOut = ref(false) @@ -32,8 +32,8 @@ const statusAction = ref(false) onMounted(() => { updateClock() - dataById.value = props.dataById - if (dataById.value == null) { + dataByIdVal.value = props.dataById + if (dataByIdVal.value == null) { statusAction.value = true } }) @@ -159,7 +159,7 @@ watch(
-
{{ covertDateObject(dataById.date) }}
+
{{ covertDateObject(dataByIdVal.date) }}
@@ -191,6 +191,7 @@ watch( +
กรุณาเลือก
+ { })