src/utils/common.js @@ -21,7 +21,6 @@ const year2 = date2.getFullYear(); const month2 = date2.getMonth(); const day2 = date2.getDate(); console.log(month1, month2); // 判断两个日期是否相差一个月 if (year1 === year2) {