From 1e01a404ba2cd4895a9166e8b9ab0b0203a19759 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 11 Sep 2023 16:30:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20msg=20=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/request.js b/utils/request.js index fb369d0a..9b180898 100644 --- a/utils/request.js +++ b/utils/request.js @@ -75,7 +75,7 @@ function baseRequest(url, method, data, { toLogin(); reject(res.data); } else - reject(res.data.message || '系统错误'); + reject(res.data.msg || res.data.message || '系统错误'); }, fail: (msg) => { reject('请求失败');