🦀️ fix: 修复bug
This commit is contained in:
parent
9797ea0f6e
commit
676d301129
|
@ -432,8 +432,10 @@ const Combining = forwardRef((props, ref) => {
|
||||||
disabled={!!state.tableData.length}
|
disabled={!!state.tableData.length}
|
||||||
onChange={({ target }) => {
|
onChange={({ target }) => {
|
||||||
setInfo({ channel: target.value })
|
setInfo({ channel: target.value })
|
||||||
if (target.value !== "1") {
|
if (target.value === "3") {
|
||||||
setInfo({ receive_mode: 1 })
|
this.handleChange(2, "receive_mode")
|
||||||
|
} else {
|
||||||
|
this.handleChange(1, "receive_mode")
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
value={info.channel}
|
value={info.channel}
|
||||||
|
|
|
@ -1026,7 +1026,9 @@ export default class combiningAdd extends React.Component {
|
||||||
disabled={!!this.state.tempdata.length}
|
disabled={!!this.state.tempdata.length}
|
||||||
onChange={({ target }) => {
|
onChange={({ target }) => {
|
||||||
this.handleChange(target.value, "channel")
|
this.handleChange(target.value, "channel")
|
||||||
if (target.value !== "1") {
|
if (target.value === "3") {
|
||||||
|
this.handleChange(2, "receive_mode")
|
||||||
|
} else {
|
||||||
this.handleChange(1, "receive_mode")
|
this.handleChange(1, "receive_mode")
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue