细节优化

master
gongfuxiang 2023-11-07 22:00:13 +08:00
parent 4e35df9969
commit 1a236b16a9
1 changed files with 14 additions and 6 deletions

20
App.vue
View File

@ -462,7 +462,7 @@
},
fail: () => {
uni.hideLoading();
self.showToast('服务器请求出错');
self.showToast('网络开小差了哦~');
},
});
}
@ -531,7 +531,7 @@
},
fail: () => {
uni.hideLoading();
self.showToast('服务器请求出错');
self.showToast('网络开小差了哦~');
},
});
},
@ -969,7 +969,7 @@
}
},
fail: () => {
this.showToast('服务器请求出错');
this.showToast('网络开小差了哦~');
},
});
}
@ -1038,7 +1038,7 @@
},
//
init_config() {
init_config(status = 0) {
uni.request({
url: this.get_request_url('common', 'base'),
method: 'POST',
@ -1062,10 +1062,18 @@
this.user_auto_login_handle();
} else {
this.showToast(res.data.msg);
//
if(status == 0) {
this.init_config(1);
}
}
},
fail: () => {
this.showToast('服务器请求出错');
this.showToast('网络开小差了哦~');
//
if(status == 0) {
this.init_config(1);
}
},
});
},
@ -1513,7 +1521,7 @@
},
fail: () => {
uni.hideLoading();
this.showToast('服务器请求出错');
this.showToast('网络开小差了哦~');
},
});
return true;