From 1f17bc6efa79e1eb221a56a5d5443a0d3f5f3faf Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Tue, 30 Nov 2021 01:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=85=A8=E5=B1=80=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/api.js | 4 ++-- .../distributor/adddistributorinfo/adddistributorinfo.js | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/assets/api.js b/src/assets/api.js index fa0c304a..d3ca1f18 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -163,8 +163,8 @@ export const handelResponse = (res, cb, errCb) => { cb(res.data, res.message) } else { if (res&&typeof errCb == 'function') { - Notify.clear(); - Notify.error(res.message); + Notify.clear(); + Notify.error(res.message); errCb(res.message) } } diff --git a/src/pages/distributor/adddistributorinfo/adddistributorinfo.js b/src/pages/distributor/adddistributorinfo/adddistributorinfo.js index d0b774a0..d1ac84a1 100644 --- a/src/pages/distributor/adddistributorinfo/adddistributorinfo.js +++ b/src/pages/distributor/adddistributorinfo/adddistributorinfo.js @@ -201,9 +201,7 @@ export default class adduserinfo extends React.Component{ handelResponse(res,(response,msg)=>{ },err=>{ - Notify.clear(); - Notify.error(res.data.message); - return false; + }); }).catch(err=>{ @@ -215,9 +213,8 @@ export default class adduserinfo extends React.Component{ handelResponse(res,(response,msg)=>{ },err=>{ - Notify.clear(); - Notify.error(res.data.message); - return false; + + }); }).catch(err=>{