From cdf0338696a948019b106cb486fcc8293d6a3080 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Mon, 9 Oct 2023 18:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AA=20optimize:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/knockGold/index.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 1c20b334..dfc1cdc1 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -752,14 +752,16 @@ export default class addKnockGold extends Component { onChange={({ target }) => { this.onHandleChange(target.value, "channel") if (target.value == 1) { - this.onHandleChange("voucher_wechat_lsxd", "provider") this.onHandleChange(defaultInstructionZfb, "instruction") } else if (target.value == 2) { this.onHandleChange(defaultInstructionWx, "instruction") } else { - this.onHandleChange("voucher_wechat_lsxd", "provider") this.onHandleChange("", "instruction") } + /* 不是微信渠道时 重置主体value */ + if (target.value != 2) { + this.onHandleChange("voucher_wechat_lsxd", "provider") + } }} value={this.state.model.channel} >