From 3a9e8865a516a2bd883fcacb173c47746f240008 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Tue, 18 Sep 2018 11:11:00 +0800 Subject: [PATCH] #4524 --- src/components/date-picker/panel/Date/date-range.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/date-picker/panel/Date/date-range.vue b/src/components/date-picker/panel/Date/date-range.vue index 5d636c0..4b058f0 100644 --- a/src/components/date-picker/panel/Date/date-range.vue +++ b/src/components/date-picker/panel/Date/date-range.vue @@ -261,7 +261,7 @@ setPanelDates(leftPanelDate){ this.leftPanelDate = leftPanelDate; const rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1); - const splitRightPanelDate = this.dates[1]? this.dates[1].getTime() : rightPanelDate.getTime(); + const splitRightPanelDate = this.dates[1]? this.dates[1].getTime() : this.dates[1]; this.rightPanelDate = this.splitPanels ? new Date(Math.max(splitRightPanelDate, rightPanelDate.getTime())) : rightPanelDate; }, panelLabelConfig (direction) { -- libgit2 0.21.4