|
@@ -48,6 +48,10 @@ const getResData = async (response, error = false) => {
|
|
|
|
|
|
//获取msg消息内容
|
|
|
const getMsgVal = (response) => {
|
|
|
- const {msg, error_description} = getObjValue(response.data)
|
|
|
- return msg || error_description || '未知错误';
|
|
|
+ const {code, msg, error_description} = getObjValue(response.data)
|
|
|
+ if (code === 404) {
|
|
|
+ return '服务器异常,请联系管理员!';
|
|
|
+ } else {
|
|
|
+ return msg || error_description || '未知错误';
|
|
|
+ }
|
|
|
}
|