| | |
| | | NProgress.done(); |
| | | const status = res.data.error_code || res.data.code || res.status; |
| | | const statusWhiteList = website.statusWhiteList || []; |
| | | const message = res.data.msg || res.data.error_description || '系统错误'; |
| | | const message = res.data.msg || res.data.error_description || res.data.message ||'系统错误'; |
| | | const config = res.config; |
| | | const cryptoData = config.cryptoData === true; |
| | | //如果在白名单里则自行catch逻辑处理 |
| | |
| | | return Promise.reject(new Error(message)); |
| | | } |
| | | // 如果请求为非200默认统一处理 |
| | | if (status !== 200) { |
| | | if (status !== 200 && status !== 0) { |
| | | if (!isErrorShown) { |
| | | ElMessage({ |
| | | message: message, |