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);
       }
     },
     // 打开上成绩