| | |
| | | const param = res.config.data ? `\n 请求参数:${JSON.stringify(decodeFormData(res.config.data))}\n` : ''; |
| | | ElMessage.error('内部错误!'); |
| | | Logger.error(`${res.config.url} 响应失败${param}`, serveData?.json_msg && new Error(serveData?.json_msg)); |
| | | throw ''; |
| | | |
| | | return res.data; |
| | | } |
| | | // 非 message error,且 handleFail 为 true |
| | |
| | | ElMessage.error(errorText); |
| | | const param = res.config.data ? `\n 请求参数:${JSON.stringify(decodeFormData(res.config.data))}\n` : ''; |
| | | Logger.error(`${res.config.url} 响应失败${param}`, errorText && new Error(errorText)); |
| | | throw ''; |
| | | } |
| | | } |
| | | return res.data; |