Commit 6fb87fe6 authored by 武广's avatar 武广

fix: 判断自定义属性超长

parent d12527ec
...@@ -462,17 +462,17 @@ class goodsManage extends Component { ...@@ -462,17 +462,17 @@ class goodsManage extends Component {
attrs = [{ attributeValueName: item[key] }]; attrs = [{ attributeValueName: item[key] }];
} }
} }
if (isMaxLength) {
notification.error({
message: '自定义属性不能超过30个字符',
});
return;
}
attributeApplyList.push({ attributeApplyList.push({
attributeId: key.replace('attr', ''), attributeId: key.replace('attr', ''),
attributeApplyValueList: attrs, attributeApplyValueList: attrs,
}); });
}); });
if (isMaxLength) {
notification.error({
message: '自定义属性不能超过30个字符',
});
return;
}
} }
await this.setState(prev => ({ await this.setState(prev => ({
confirmLoading: true, confirmLoading: true,
......
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