date1专题

vue3 antdv3 TypeError: date1.isAfter is not a function的解决

1、先上个报错的图: 2、这个一看是因为date报错的问题,这里面用了TimeRangePicker. const TimeRangePicker = TimePicker.TimeRangePicker; import dayjs, { Dayjs } from 'dayjs'; let time1 = [dayjs(dayjs(new Date()).format('YYYY-