fix: 修复key批次 兑换码新增有原数据

This commit is contained in:
zhangds 2022-09-30 18:23:47 +08:00
parent 769d16c3a0
commit 496197b6bf
2 changed files with 20 additions and 0 deletions

View File

@ -542,10 +542,20 @@ export default class acclist extends React.Component {
this.setState({ rank: null });
this.setState({ rankoptions: [] });
this.setState({ drawerVisible: true });
if (this.state.keyType === 2) {
setTimeout(() => {
this.refs.addEditCouponEl.clearCouponForm();
});
}
sessionStorage.setItem("productData", "");
sessionStorage.setItem("knockGoldData", "");
}
closeDraw() {
if (this.state.keyType === 2) {
setTimeout(() => {
this.refs.addEditCouponEl.clearCouponForm();
});
}
this.setState({ drawerVisible: false });
}
addProduct(type) {

View File

@ -434,10 +434,20 @@ export default class acclist extends React.Component {
this.setState({ rank: null });
this.setState({ rankoptions: [] });
this.setState({ drawerVisible: true });
if (this.state.keyType === 2) {
setTimeout(() => {
this.refs.addEditCouponEl.clearCouponForm();
});
}
sessionStorage.setItem("productData", "");
sessionStorage.setItem("knockGoldData", "");
}
closeDraw() {
if (this.state.keyType === 2) {
setTimeout(() => {
this.refs.addEditCouponEl.clearCouponForm();
});
}
this.setState({ drawerVisible: false });
}
addProduct(type) {