修复bug

This commit is contained in:
wangsongsole 2022-06-02 11:59:05 +08:00
parent a4b1786402
commit 146e953fdb
1 changed files with 3 additions and 3 deletions

View File

@ -315,7 +315,7 @@ export default class acclist extends React.Component {
) )
temp = _.map(data, (item) => { temp = _.map(data, (item) => {
let index = this.state.tempdata.findIndex((o) => { let index = this.state.tempdata.findIndex((o) => {
return o.product_id == item.only return o.product_id == item.product_id
}) })
if (index > -1) { if (index > -1) {
@ -345,7 +345,7 @@ export default class acclist extends React.Component {
) )
temp = _.map(data, (item) => { temp = _.map(data, (item) => {
let index = this.state.tempdata.findIndex((o) => { let index = this.state.tempdata.findIndex((o) => {
return o.channel_activity_id === item.only return o.channel_activity_id === item.channel_activity_id
}) })
if (index > -1) { if (index > -1) {
@ -386,7 +386,6 @@ export default class acclist extends React.Component {
let newArray = temp.concat(this.state.tempdata) let newArray = temp.concat(this.state.tempdata)
newArray = deWeightThree(newArray, 'only') newArray = deWeightThree(newArray, 'only')
this.setState({ tempdata: newArray }) this.setState({ tempdata: newArray })
sessionStorage.setItem('knockGoldData', '')
}, 500) }, 500)
} }
} }
@ -494,6 +493,7 @@ export default class acclist extends React.Component {
this.setState({ distdata: tempdata }) this.setState({ distdata: tempdata })
} }
} }
sessionStorage.setItem('knockGoldData', '')
} }
addNewKey() { addNewKey() {
this.props.addNewkey() this.props.addNewkey()