From 070042cb3aa883f377ebf35345492e9864081cd2 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 23 Jul 2020 14:47:32 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-35912=20fix:=20=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/date/calendar/picker.date.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/date/calendar/picker.date.js b/src/widget/date/calendar/picker.date.js index 6c702e7cb..2d840b2b0 100644 --- a/src/widget/date/calendar/picker.date.js +++ b/src/widget/date/calendar/picker.date.js @@ -35,7 +35,7 @@ BI.DatePicker = BI.inherit(BI.Widget, { } else { self.setValue({ year: self.year.getValue(), - month: self.month.getValue() - 1, + month: (self.month.getValue() - 1) || BI.getDate().getMonth(), }); } self.fireEvent(BI.DatePicker.EVENT_CHANGE); @@ -59,7 +59,7 @@ BI.DatePicker = BI.inherit(BI.Widget, { } else { self.setValue({ year: self.year.getValue(), - month: self.month.getValue() + 1, + month: (self.month.getValue() + 1) || (BI.getDate().getMonth() + 2), }); } self.fireEvent(BI.DatePicker.EVENT_CHANGE);