From a73d1a77aa57c1ec860b7c44cd44fab7e7b830ed Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 3 Sep 2021 18:08:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=B7=E6=B1=82=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: