Commit c7ce5c78 authored by 杨奕's avatar 杨奕

Update month-table.vue

parent 74970c8b
...@@ -87,9 +87,7 @@ ...@@ -87,9 +87,7 @@
// var date = new Date('1988-04-01 00:00:00') Fri Apr 01 1988 00:00:00 GMT+0800 (CST) // var date = new Date('1988-04-01 00:00:00') Fri Apr 01 1988 00:00:00 GMT+0800 (CST)
// date.setMonth(4) Sun May 01 1988 00:00:00 GMT+0900 (CDT) // date.setMonth(4) Sun May 01 1988 00:00:00 GMT+0900 (CDT)
// Sometimes the time zone will change. // Sometimes the time zone will change.
if (date.getFullYear() === nextMonth.getFullYear() && if (date - nextMonth < 8.64e7) {
date.getMonth() === nextMonth.getMonth() &&
date.getDate() === nextMonth.getDate()) {
flag = true; flag = true;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment