Merge branch 'master' of codeup.aliyun.com:5f9118049cffa29cfdd3be1c/marketing/frontend

This commit is contained in:
姜棚 2021-11-30 02:17:37 +08:00
commit 1dc627daaa
2 changed files with 5 additions and 8 deletions

View File

@ -163,8 +163,8 @@ export const handelResponse = (res, cb, errCb) => {
cb(res.data, res.message) cb(res.data, res.message)
} else { } else {
if (res&&typeof errCb == 'function') { if (res&&typeof errCb == 'function') {
Notify.clear(); Notify.clear();
Notify.error(res.message); Notify.error(res.message);
errCb(res.message) errCb(res.message)
} }
} }

View File

@ -201,9 +201,7 @@ export default class adduserinfo extends React.Component{
handelResponse(res,(response,msg)=>{ handelResponse(res,(response,msg)=>{
},err=>{ },err=>{
Notify.clear();
Notify.error(res.data.message);
return false;
}); });
}).catch(err=>{ }).catch(err=>{
@ -215,9 +213,8 @@ export default class adduserinfo extends React.Component{
handelResponse(res,(response,msg)=>{ handelResponse(res,(response,msg)=>{
},err=>{ },err=>{
Notify.clear();
Notify.error(res.data.message);
return false;
}); });
}).catch(err=>{ }).catch(err=>{