diff --git a/src/components/data-search-bar.vue b/src/components/data-search-bar.vue index ce1683b..2220af5 100644 --- a/src/components/data-search-bar.vue +++ b/src/components/data-search-bar.vue @@ -53,8 +53,8 @@ const onSubmit = () => { searchDeviceForm.value.validate(() => { const { deviceId, date } = { ...searchDevice }; if (date) { - const start = dayjs(date[0]).format('X'); - const end = dayjs(date[1]).format('X'); + const start = dayjs(date[0]).valueOf(); + const end = dayjs(date[1]).valueOf(); const daterange = [start, end]; emit('search', { deviceId, date: daterange }); } else { diff --git a/src/views/month-data.vue b/src/views/month-data.vue index 20c9954..1c9fda3 100644 --- a/src/views/month-data.vue +++ b/src/views/month-data.vue @@ -1,5 +1,5 @@