xuqiaoying 2 лет назад
Родитель
Сommit
904c52edbd
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      src/pages/person-center/my-course/index.vue

+ 6 - 5
src/pages/person-center/my-course/index.vue

@@ -985,8 +985,8 @@ export default {
      * 获取学习记录
      */
     getRecord(item) {
-      this.$request.studyrecordgetUserWatchLast().then(async (res) => {
-        if (res.data && res.data.sectionId) {
+      this.$request.studyrecordgetUserStudyLast().then(async (res) => {
+        // if (res.data && res.data.sectionId) {
           await this.getGoodsData(res);
           var stop = false;
           for (let y = 0; y < this.goodsTeacher.length; y++) {
@@ -1115,9 +1115,10 @@ export default {
               }
             }
           }
-        } else {
-          this.resultCourseGoodsList();
-        }
+          
+        // } else {
+        //   this.resultCourseGoodsList();
+        // }
       });
     },
     resultCourseGoodsList() {