fix bug log

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-26 14:39:35 +07:00
parent f18312fd23
commit 225f2c6be8

View file

@ -199,8 +199,8 @@ function handleScroll() {
searchAfter: searchAfter.value ?? undefined,
sort: sortTime.value,
// date: new Date(startDate.value),
startDate: new Date(startDate.value),
endDate: new Date(endDate.value),
startDate: new Date(startDate.value) ?? undefined,
endDate: new Date(endDate.value) ?? undefined,
},
true
);
@ -331,6 +331,11 @@ function updateDate() {
onMounted(() => {
systemName.value = route.query.system as string;
const date = new Date();
date.setHours(0, 0, 0, 0); // 00:00:00.000
startDate.value = date.toISOString(); // ISO string
endDate.value = new Date().toISOString();
});
</script>