Explorar el Código

fix(frontend): 打卡请求失败时补充错误提示

Xiaogang Liao hace 1 mes
padre
commit
d1d87b22e3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      cfc-frontend/pages/index-home/index.vue

+ 2 - 0
cfc-frontend/pages/index-home/index.vue

@@ -724,6 +724,8 @@ export default {
         } else {
           uni.showToast({ title: (res && res.message) || '打卡失败', icon: 'none' })
         }
+      }).catch(function() {
+        uni.showToast({ title: '打卡失败,请重试', icon: 'none' })
       })
     },
     loadMyCircles: function() {