diff --git a/nezha-fronted/src/components/common/pickTime.vue b/nezha-fronted/src/components/common/pickTime.vue index b4e7c92db..dad9eb56c 100644 --- a/nezha-fronted/src/components/common/pickTime.vue +++ b/nezha-fronted/src/components/common/pickTime.vue @@ -148,6 +148,9 @@ export default { if (timeRange && timeRange.length < 2) { return [] } + if (!timeRange[0]) { + return [] + } const startTime = bus.timeFormate(timeRange[0], this.pickTimer) const endTime = bus.timeFormate(timeRange[1], this.pickTimer) const timeType = timeRange[2]