Commit 7b9919f4 authored by beisir's avatar beisir

fix: 编辑时无权获取商品信息提示

parent ccc481a4
...@@ -129,7 +129,7 @@ class goodsManage extends Component { ...@@ -129,7 +129,7 @@ class goodsManage extends Component {
this.setState({ this.setState({
createloading: true, createloading: true,
}); });
const { data } = await spuDetail({ id: spuId }); const { data, msg } = await spuDetail({ id: spuId });
if (data) { if (data) {
data.pageProductType = productType; data.pageProductType = productType;
data.categoryId = data.thirdCategoryId; data.categoryId = data.thirdCategoryId;
...@@ -164,6 +164,13 @@ class goodsManage extends Component { ...@@ -164,6 +164,13 @@ class goodsManage extends Component {
createVisible: true, createVisible: true,
createloading: false, createloading: false,
}); });
} else {
this.setState({
createloading: false,
});
notification.warning({
message: msg,
});
} }
}; };
......
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