From 676d3011293640c4de6ac126b510e06c0e53f087 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 27 Feb 2024 16:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=80=EF=B8=8F=20fix:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/combining/index.jsx | 6 ++++-- src/pages/exchangecode/combiningAdd/index.jsx | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/combining/index.jsx b/src/components/combining/index.jsx index 3bc82993..01f34e75 100644 --- a/src/components/combining/index.jsx +++ b/src/components/combining/index.jsx @@ -432,8 +432,10 @@ const Combining = forwardRef((props, ref) => { disabled={!!state.tableData.length} onChange={({ target }) => { setInfo({ channel: target.value }) - if (target.value !== "1") { - setInfo({ receive_mode: 1 }) + if (target.value === "3") { + this.handleChange(2, "receive_mode") + } else { + this.handleChange(1, "receive_mode") } }} value={info.channel} diff --git a/src/pages/exchangecode/combiningAdd/index.jsx b/src/pages/exchangecode/combiningAdd/index.jsx index af9ba528..4614d3d2 100644 --- a/src/pages/exchangecode/combiningAdd/index.jsx +++ b/src/pages/exchangecode/combiningAdd/index.jsx @@ -1026,7 +1026,9 @@ export default class combiningAdd extends React.Component { disabled={!!this.state.tempdata.length} onChange={({ target }) => { this.handleChange(target.value, "channel") - if (target.value !== "1") { + if (target.value === "3") { + this.handleChange(2, "receive_mode") + } else { this.handleChange(1, "receive_mode") } }}