Просмотр исходного кода

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

Xiaogang Liao 1 месяц назад
Родитель
Сommit
d1d87b22e3
1 измененных файлов с 2 добавлено и 0 удалено
  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 {
         } else {
           uni.showToast({ title: (res && res.message) || '打卡失败', icon: 'none' })
           uni.showToast({ title: (res && res.message) || '打卡失败', icon: 'none' })
         }
         }
+      }).catch(function() {
+        uni.showToast({ title: '打卡失败,请重试', icon: 'none' })
       })
       })
     },
     },
     loadMyCircles: function() {
     loadMyCircles: function() {