修复 商品组件 编辑商品权重为0时不能提交 验证问题

This commit is contained in:
wangsongsole 2022-08-03 11:28:12 +08:00
parent 2b41a4b9cd
commit b006e45446
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ export default class adduserinfo extends React.Component {
model.cost_price = model_temp.cost_price
model.quantity = model_temp.quantity
model.product_name = model_temp.product_name
model.weight = model_temp.weight
model.weight = String(model_temp.weight)
model.show_url = model_temp.show_url
model.account_type = model_temp.account_type
model.detail_url = model_temp.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
model.weight = String(model_temp.weight)
model.detail_url = model_temp.detail_url
model.account_type = model_temp.account_type
let defaultPic = []