Commit 3a9e8865a516a2bd883fcacb173c47746f240008

Authored by 梁灏
1 parent edc767a6

#4524

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/date-picker/panel/Date/date-range.vue
... ... @@ -261,7 +261,7 @@
261 261 setPanelDates(leftPanelDate){
262 262 this.leftPanelDate = leftPanelDate;
263 263 const rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1);
264   - const splitRightPanelDate = this.dates[1]? this.dates[1].getTime() : rightPanelDate.getTime();
  264 + const splitRightPanelDate = this.dates[1]? this.dates[1].getTime() : this.dates[1];
265 265 this.rightPanelDate = this.splitPanels ? new Date(Math.max(splitRightPanelDate, rightPanelDate.getTime())) : rightPanelDate;
266 266 },
267 267 panelLabelConfig (direction) {
... ...