This commit is contained in:
red-deng-deng 2021-11-28 19:07:00 +08:00
parent 6ea0a1f400
commit d9ab474c85
2 changed files with 10 additions and 7 deletions

View File

@ -95,12 +95,16 @@ const req = (method, url, params, responseType) => {
// 401: 未登录
case 401:
Notify.clear();
Notify.error( "没有权限,用户登录已失效");
sessionStorage.clear();
setTimeout(() => {
window.location.href='/login';
}, 2000)
Notify.error( "没有权限");
break;
case 403:
Notify.clear();
Notify.error( "用户登录已失效,请重新登录");
sessionStorage.clear();
setTimeout(() => {
window.location.href='/login';
}, 2000)
break;
}
}

View File

@ -434,8 +434,7 @@ export default class orderlist extends React.Component{
const orderList_data=response.data;
const {total}=response;
_self.setState({orderList:orderList_data,total});
Notify.clear();
Notify.success(msg);
},(err)=>{
})