@@ -368,7 +368,6 @@ export default {
resetDate(radio) {
const date = new Date();
const days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
-
if (radio === "sy") {
const month = date.getMonth() - 1 < 0 ? 11 : date.getMonth() - 1;
const day = days[month];
@@ -380,9 +379,7 @@ export default {
`-${day}`,
];
} else if (radio === "by") {
- const month = date.getMonth() - 1 < 0 ? 11 : date.getMonth() - 1;
- const day = days[month + 1];
+ const day = days[date.getMonth()];
this.date = [
new Date().formatDate("yyyy-MM") +
"-01",