guhongwei 4 years ago
parent
commit
88329bce81
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/class/index.vue

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

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