diff --git a/src/utils/http.js b/src/utils/http.js index c6d1c98..d0d8ef9 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -135,7 +135,7 @@ export function get(url, params){ break; case 500: this.$message.error( - res.data.errmessage + res.data.errmessage || res.data.message ); break; case 404: @@ -196,8 +196,9 @@ export function post(url, params) { resolve(res.data); break; case 500: + resolve(res.data); this.$message.error( - res.data.errmessage + res.data.errmessage || res.data.message ); break; case 404: