This commit is contained in:
parent
6ea0a1f400
commit
d9ab474c85
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)=>{
|
||||
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue