import dayjs from "dayjs";
const intervalDay = dayjs(this.queryDate.endTime).diff(
this.queryDate.beginTime,
"day"
);
if (intervalDay > 2) {
return this.$message.warning("日期间隔不能大于3天");
}
微信扫一扫
import dayjs from "dayjs";
const intervalDay = dayjs(this.queryDate.endTime).diff(
this.queryDate.beginTime,
"day"
);
if (intervalDay > 2) {
return this.$message.warning("日期间隔不能大于3天");
}
相关推荐