去掉toast的引入

This commit is contained in:
zoujiandong 2025-11-20 11:33:55 +08:00
parent f4b1ef932d
commit 6b37f0899d

View File

@ -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({