管理后台:商品列表报错的问题,解决商品报价 * 100

This commit is contained in:
YunaiV
2019-04-16 23:26:56 +08:00
parent 371eba5537
commit 2eb5d32cbc
5 changed files with 10 additions and 60 deletions

View File

@@ -47,19 +47,6 @@ class ProductSpuAddOrUpdate extends Component {
});
}
// handleSubmit = e => {
// const { dispatch, form } = this.props;
// e.preventDefault();
// form.validateFieldsAndScroll((err, values) => {
// if (!err) {
// dispatch({
// type: 'form/submitRegularForm',
// payload: values,
// });
// }
// });
// }
handleAddAttr = e => {
// alert('你猜');
const { dispatch } = this.props;
@@ -83,7 +70,7 @@ class ProductSpuAddOrUpdate extends Component {
}
let newAttr = {
attrs: [],
price: sku.price,
price: sku.price * 100,
quantity: sku.quantity,
}
for (let j in sku.attrs) {