guhongwei пре 4 година
родитељ
комит
88329bce81
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/views/class/index.vue

+ 2 - 1
src/views/class/index.vue

@@ -280,7 +280,8 @@ export default {
     async onsist({ id }) {
       const res = await this.uploadtasklist({ studentid: id });
       if (res.errcode === 0) {
-        this.$set(this, `homeworkLessonList`, res.data);
+        let homeworkLessonList = _.uniqBy(res.data, 'lessonid');
+        this.$set(this, `homeworkLessonList`, homeworkLessonList);
       }
     },
     // 打开上成绩