From 146e953fdbac0efbadc41f09edfb8cc9d8c3c8ab Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Thu, 2 Jun 2022 11:59:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/add/step2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index d349c5e1..cc6d7bd5 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -315,7 +315,7 @@ export default class acclist extends React.Component { ) temp = _.map(data, (item) => { let index = this.state.tempdata.findIndex((o) => { - return o.product_id == item.only + return o.product_id == item.product_id }) if (index > -1) { @@ -345,7 +345,7 @@ export default class acclist extends React.Component { ) temp = _.map(data, (item) => { 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) { @@ -386,7 +386,6 @@ export default class acclist extends React.Component { let newArray = temp.concat(this.state.tempdata) newArray = deWeightThree(newArray, 'only') this.setState({ tempdata: newArray }) - sessionStorage.setItem('knockGoldData', '') }, 500) } } @@ -494,6 +493,7 @@ export default class acclist extends React.Component { this.setState({ distdata: tempdata }) } } + sessionStorage.setItem('knockGoldData', '') } addNewKey() { this.props.addNewkey()