diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index 707bbd93..6d5fd117 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -278,6 +278,7 @@ export default class acclist extends React.Component{ } addProduct(){ this.setState({drawerVisible2:true}) + this.setState({productData:null}) } async productSubmit(){ diff --git a/src/pages/exchangecode/product/add.js b/src/pages/exchangecode/product/add.js index ffac820f..42262fe5 100644 --- a/src/pages/exchangecode/product/add.js +++ b/src/pages/exchangecode/product/add.js @@ -165,12 +165,13 @@ export default class adduserinfo extends React.Component{ } async submit(){ + console.log("编辑数据") if(this.refs.form1.validator()) { if(this.props.data) { let temp = [] - + console.log(777666) if(sessionStorage.getItem("productData")) {