| | |
| | | const status = res.data.code || res.status; |
| | | const statusWhiteList = website.statusWhiteList || []; |
| | | const message = res.data.msg || res.data.error_description || '未知错误'; |
| | | if(res.config.url=='/api/oauth/form' && res.status == 200){ |
| | | if(res.config.url=='/ssoapi/oauth/form' && res.status == 200){ |
| | | window.open(res.request.responseURL,'_self') |
| | | return |
| | | } |
| | |
| | | type: 'error' |
| | | }); |
| | | // NProgress.done(); |
| | | if(res.config.url=='/api/oauth/token'){ |
| | | if(res.config.url=='/ssoapi/oauth/token'){ |
| | | return Promise.reject(new Error(message)) |
| | | } |
| | | } |