Commit e883398b authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:

parent 0fdb080f
......@@ -256,19 +256,19 @@ const AddProducts: React.FC<{}> = (props) => {
PublicApi.postProductCommoditySaveOrUpdateCommodity(_params).then(res => {
if(res.code === 1000){
setIsEnableCheck(false)
// setIsDisableSaveBtn(false)
setIsDisableSaveBtn(false)
setReponseId(res.data)
history.goBack()
}
})
}).then( e => {
setIsEnableCheck(false)
setIsDisableSaveBtn(false)
if(e)
message.error(e.message)
console.log(e, 'e')
}).catch(error => {
setIsEnableCheck(false)
setIsDisableSaveBtn(false)
if(error.messge)
message.error(error.message)
else
......@@ -277,7 +277,7 @@ const AddProducts: React.FC<{}> = (props) => {
console.log(error, '_error')
})
}catch(e){
setIsEnableCheck(false)
setIsDisableSaveBtn(false)
message.error(e.message)
console.log(e,'error')
......
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