|
|
@@ -25,6 +25,7 @@ const Advanced = (props) => { |
|
|
|
const onFinish = async (values) => { |
|
|
|
const hide = message.loading('正在添加'); |
|
|
|
try { |
|
|
|
if(props.location.query.isAdd)values.id=null; |
|
|
|
values.imgUrl = url ? url : values.imgUrl; |
|
|
|
await addGoods(JSON.stringify(values)).then((r) => { |
|
|
|
if (r.data) { |
|
|
|