diff --git a/src/views/mes/ganttChart/index.vue b/src/views/mes/ganttChart/index.vue index daf8c4fd..8cead246 100644 --- a/src/views/mes/ganttChart/index.vue +++ b/src/views/mes/ganttChart/index.vue @@ -73,8 +73,8 @@ const scheduleList = ref([]) const activeDevice = ref() const buildDefaultRange = () => { - const start = dayjs().startOf('day') - const end = start.add(7, 'day').endOf('day') + const start = dayjs().startOf('month').startOf('day') + const end = dayjs().endOf('month').endOf('day') return [start.format('YYYY-MM-DD HH:mm:ss'), end.format('YYYY-MM-DD HH:mm:ss')] }