guhongwei před 4 roky
rodič
revize
88329bce81
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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);
       }
     },
     // 打开上成绩