diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index 8088d4f0..378a261f 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -289,12 +289,6 @@ export default class acclist extends React.Component { /* 获取商品列表 */ getProductFunction(id) { - if ( - sessionStorage.getItem('productsList') && - JSON.parse(sessionStorage.getItem('productsList'))?.length > 1 - ) { - return - } getProductInfoSelect({ reseller_id: id }).then((res) => { if (res.code === 200) { sessionStorage.setItem('productsList', JSON.stringify(res.data.data)) diff --git a/src/pages/exchangecode/copyCode/index.jsx b/src/pages/exchangecode/copyCode/index.jsx index 2fab3751..03d3a589 100644 --- a/src/pages/exchangecode/copyCode/index.jsx +++ b/src/pages/exchangecode/copyCode/index.jsx @@ -131,14 +131,6 @@ export default class acclist extends React.Component { this.setState({ direct_reseller_id: req.direct_reseller_id }) - - if ( - sessionStorage.getItem('productsList') && - JSON.parse(sessionStorage.getItem('productsList'))?.length > 1 - ) { - return - } - /* 请求商品数据 */ getProductInfoSelect({ reseller_id: req.direct_reseller_id