Commit ac2541f2 authored by 武广's avatar 武广

fix: 修改添加商品报错

parent 95a0b54e
......@@ -438,7 +438,7 @@ class goodsManage extends Component {
item[key].forEach(attr => {
try {
const json = JSON.parse(attr);
if (this.checkInAttrList(json.attributeId)) {
if (this.checkInAttrList(json.attributeValueId)) {
attrs.push(json);
}
} catch {
......@@ -448,7 +448,7 @@ class goodsManage extends Component {
} else {
try {
const json = JSON.parse(item[key]);
if (this.checkInAttrList(json.attributeId)) {
if (this.checkInAttrList(json.attributeValueId)) {
attrs = [json];
}
} catch {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment