From a11f09a30dead58364d0b1b83262272df49b244b Mon Sep 17 00:00:00 2001 From: zhangds Date: Wed, 19 Oct 2022 11:28:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E6=83=A0=E5=88=B8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=8D=E5=8B=BE=E9=80=89=E4=B8=8D=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UseCouponAddEdit/index.jsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/UseCouponAddEdit/index.jsx b/src/components/UseCouponAddEdit/index.jsx index 49b6afe7..b34a771d 100644 --- a/src/components/UseCouponAddEdit/index.jsx +++ b/src/components/UseCouponAddEdit/index.jsx @@ -379,19 +379,18 @@ const UseCouponAddEdit = forwardRef((props, ref) => { }); let scope_data = goods_arr.concat(lj_arr); - console.log("scope_data =>", scope_data); scope_data = _.map(scope_data, (o) => { if (o.type === 2) { if (o.only.is_delete) { - o.checked = true; - } else { o.checked = false; + } else { + o.checked = true; } } else { if (o.is_delete) { - o.checked = true; - } else { o.checked = false; + } else { + o.checked = true; } } return o;