Explorar o código

系统报错提示修改

zhanghui %!s(int64=2) %!d(string=hai) anos
pai
achega
5c4878aea3
Modificáronse 2 ficheiros con 3 adicións e 7 borrados
  1. 2 2
      common/js/request.js
  2. 1 5
      myPages/serviceObjectFaceAuth/index.vue

+ 2 - 2
common/js/request.js

@@ -36,8 +36,8 @@ function service(options = {}) {
 					uni.showToast({
 						icon: 'none',
 						duration: 3000,
-						title:'系统繁忙,请重试!'
-						// title: '错误信息:'+`${res.data.msg}`
+						// title:'系统繁忙,请重试!'
+						title: res.data.msg
 					});
 				}
 				// 返回错误信息

+ 1 - 5
myPages/serviceObjectFaceAuth/index.vue

@@ -123,11 +123,7 @@
               url: '/myPages/serviceObjectInfo/index?data=' + JSON.stringify(serviceObject),
             })
           }
-        }).catch(() =>{
-          uni.showToast({
-            title: "操作失败"
-          })
-        });
+        })
 
       },
       //头像上传