zhongtianhaoyuan 3 年之前
父节点
当前提交
723c531214
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      util/request.js

+ 5 - 5
util/request.js

@@ -25,11 +25,11 @@ const baseRequest = (method, url, data,header) => {
 						// 后端返回的状态码100为成功状态,成功则返回请求结果,在app调试时可以通过console.log(JSON.stringify(res[1].data))来查看返回值(以项目实际情况为准)
 						resolve(res[1].data)
 					}else{
-						// uni.showToast({
-						// 	icon:'none',
-						//     title: res[1].data.message,
-						//     duration: 2000 
-						// }); 
+						uni.showToast({
+							icon:'none',
+						    title: res[1].data.message,
+						    duration: 2000 
+						}); 
 					}
 					// // 登录失败
 					// if(res[1].data.code == '11006' || res[1].data.code == 11006){