Commit ac2541f2 authored by 武广's avatar 武广

fix: 修改添加商品报错

parent 95a0b54e
...@@ -438,7 +438,7 @@ class goodsManage extends Component { ...@@ -438,7 +438,7 @@ class goodsManage extends Component {
item[key].forEach(attr => { item[key].forEach(attr => {
try { try {
const json = JSON.parse(attr); const json = JSON.parse(attr);
if (this.checkInAttrList(json.attributeId)) { if (this.checkInAttrList(json.attributeValueId)) {
attrs.push(json); attrs.push(json);
} }
} catch { } catch {
...@@ -448,7 +448,7 @@ class goodsManage extends Component { ...@@ -448,7 +448,7 @@ class goodsManage extends Component {
} else { } else {
try { try {
const json = JSON.parse(item[key]); const json = JSON.parse(item[key]);
if (this.checkInAttrList(json.attributeId)) { if (this.checkInAttrList(json.attributeValueId)) {
attrs = [json]; attrs = [json];
} }
} catch { } 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