From 03146c01d46963d54e74654fad6780ab86fbe1d0 Mon Sep 17 00:00:00 2001 From: "LIONCITYS\\lioncity" <18026623439@163.com> Date: Mon, 19 Oct 2020 09:59:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=99=90=E6=B5=81=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/request.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/request.js b/utils/request.js index 0732c76..1147e3f 100644 --- a/utils/request.js +++ b/utils/request.js @@ -41,6 +41,13 @@ fly.interceptors.response.use( console.log('————————') handleLoginFailure(); return Promise.reject({ msg: "未登录", toLogin: true }); + } + if (error.response.data.status == 5109) { + uni.showToast({ + title: error.response.data.msg, + icon: "none", + duration: 2000 + }); } return Promise.reject(error); }