例如根据'2022-05' 返回起始时间 数组 ['2022-05-01','2022-05-31']
getMonthTime(day) {
//传入的格式YYYY-MM
var nyYear = day.slice(0, 4);
var nyMonth = day.slice(6, day.length);
var firstDay = new Date(nyYear, nyMonth - 1);
var lastDay = new Date(
new Date(nyYear, nyMonth).valueOf() - 60 * 60 * 1000 * 24
);
var dateArr = [];
dateArr.push(firstDay);
dateArr.push(lastDay);
return dateArr;
},