🦀️ fix: 修复bug

This commit is contained in:
wangsongsole 2024-03-05 16:38:12 +08:00
parent 6574631557
commit 89be51a37d
2 changed files with 2 additions and 0 deletions

View File

@ -452,6 +452,7 @@ const Combining = forwardRef((props, ref) => {
setInfo({ receive_mode: target.value }) setInfo({ receive_mode: target.value })
if (state.keyPcType === 2) { if (state.keyPcType === 2) {
setState({ rankOptions: [], rank: [], tableData: [] }) setState({ rankOptions: [], rank: [], tableData: [] })
sessionStorage.setItem("knockGoldData", JSON.stringify([]))
} }
}} }}
value={info.receive_mode} value={info.receive_mode}

View File

@ -1067,6 +1067,7 @@ export default class combiningAdd extends React.Component {
this.handleChange(target.value, "receive_mode") this.handleChange(target.value, "receive_mode")
if (this.state.isState === 1) { if (this.state.isState === 1) {
this.setState({ tempdata: [], rankoptions: [], rank: [] }) this.setState({ tempdata: [], rankoptions: [], rank: [] })
sessionStorage.setItem("knockGoldData", JSON.stringify([]))
} }
}} }}
value={this.state.codeInfo.receive_mode} value={this.state.codeInfo.receive_mode}