From d1f7c697e02c113b79585d770db54e6b45d01a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Mon, 24 Jan 2022 11:33:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/add/add.js | 1 + src/pages/exchangecode/product/add.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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")) {