修正 新建商品是权重验证问题

This commit is contained in:
wangsongsole 2022-06-15 11:19:25 +08:00
parent 60b4288c7d
commit 0002cb9e21
2 changed files with 2 additions and 3 deletions

View File

@ -266,7 +266,6 @@ export default class adduserinfo extends React.Component {
stock: quantity,
usage: 0,
product_name: cur_product.title,
weight: cur_product.weight,
show_url: picItem ? picItem.pic : '',
describe_url: '',
detail_url: '',

View File

@ -83,7 +83,7 @@ export default class adduserinfo extends React.Component {
model.quantity = model_temp.quantity
model.product_name = model_temp.product_name
model.show_url = model_temp.show_url
model.weight = model_temp.weight || '0'
model.weight = model_temp.weight
model.detail_url = model_temp.detail_url
model.account_type = model_temp.account_type
let defaultPic = []
@ -511,7 +511,7 @@ export default class adduserinfo extends React.Component {
}}
onClearItem={(e) => {
let model2 = this.state.model
model2.weight = '0'
model2.weight = ''
this.setState({ model: model2 })
}}
value={this.state.model.weight}