xuqiaoying 2 years ago
parent
commit
03c46e3c54
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages2/dailyPractice/index.vue

+ 2 - 2
pages2/dailyPractice/index.vue

@@ -23,7 +23,7 @@
                         <text class="two" v-else>打卡进度超过了{{ dayExamDetail.recordPercentage || '0%' }}的学员</text>
                     </view>
                     <view class="print_right">
-                        <text class="nums">{{ dayExamDetail.recordCount }}</text>天
+                        <text class="nums">{{ dayExamDetail.recordCount || 0 }}</text>天
                     </view>
                 </view>
                 <view class="middle_line">
@@ -140,7 +140,7 @@ export default {
 				method: 'get',
 			}).then((res) => {
                 if (res.data.code == 200) {
-                    this.dayExamDetail = res.data.data || {}
+                    this.dayExamDetail = res.data && res.data.data || {}
                 }
             })
         },