import dayjs from "dayjs";
const intervalDay = dayjs(this.queryDate.endTime).diff(
this.queryDate.beginTime,
"day"
);
if (intervalDay > 2) {
return this.$message.warning("日期间隔不能大于3天");
}
dayjs获取两个时间之间的间隔天数
阅读 100
2023-02-24
import dayjs from "dayjs";
const intervalDay = dayjs(this.queryDate.endTime).diff(
this.queryDate.beginTime,
"day"
);
if (intervalDay > 2) {
return this.$message.warning("日期间隔不能大于3天");
}
相关推荐
精彩评论(0)