@@ -55,10 +55,13 @@ const http=(url,params,method)=>{
},
fail(error) {
console.log(error);
- uni.showToast({
- title:'服务器错误',
- icon:'none'
- })
+ setTimeout(() => {
+ uni.showToast({
+ title:'服务器错误',
+ icon:'none'
+ })
+ }, 0);
+
complete() {
// 关闭loading