From b487a569cfb9b3f51a7148984b1f7fe9773c5b0a Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Fri, 19 Aug 2022 14:46:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=AB=8B=E5=87=8F=E9=87=91?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E6=97=B6=E9=97=B4=E4=B8=8D=E8=83=BD=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/knockGold/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index f9142cd5..9c03fee0 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -305,10 +305,11 @@ export default class addKnockGold extends Component { onDisabledRange2 = (date, type) => { let isdisabled = false let str = moment(date).format('YYYY-MM-DD HH:mm:ss') + console.log(str, moment(str).isAfter(this.state.model.entry_time[1])) if (type == 'start') { isdisabled = moment(str).isBefore(this.state.model.entry_time[0]) || - moment(str).isAfter(this.state.model.entry_time[1]) + moment(str).subtract(1, 'days').isAfter(this.state.model.entry_time[1]) } if (type == 'end') {