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); }