From 6b37f0899d7bb545e26f832d91f7b8f60a1ac328 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Thu, 20 Nov 2025 11:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89toast=E7=9A=84=E5=BC=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/request.js | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/utils/request.js b/utils/request.js index 9b0e218..e30d917 100644 --- a/utils/request.js +++ b/utils/request.js @@ -106,10 +106,6 @@ export const request = (url, data = {}, method = 'post', loading = false, conten if (loading) { uni.hideLoading(); }; - uni.showToast({ - title: res.data.code, - icon: 'none' - }); if(url.indexOf('manager/getSystemTimeStamp')!=-1){ e(res) }else if (res.data.code == 200 || res.data.code == 1 || res.data.code == "1" || res.data.code == "200"){ @@ -137,19 +133,12 @@ export const request = (url, data = {}, method = 'post', loading = false, conten e(res.data) }else if(res.data.code==35002){ n(res) - uni.showToast({ - title: '登录过期,请重新登录', - icon: 'none' - }); - uni.redirectTo({ - url: '/pages_app/login/login' - }); - // uni.sendNativeEvent('goTabbarPage', { - // msg: 'home' - // },ret => { - // console.log(ret); - // }) - // plus.runtime.quit(); + uni.sendNativeEvent('goTabbarPage', { + msg: 'home' + },ret => { + console.log(ret); + }) + plus.runtime.quit(); }else{ uni.showToast({