소스 검색

01/11 添加学生bug修复

1
mo 4 년 전
부모
커밋
11aeff7b03
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/teamDetail/componentClass/classCompound.vue

+ 2 - 1
src/views/teamDetail/componentClass/classCompound.vue

@@ -192,7 +192,8 @@ export default {
         ) {
           flag = true;
         }
-        if (com.id != this.radio) {
+
+        if (com.id != this.radio&&com.studentList?.length>0) {
           this.classGroupStudents.push({
             [com.id]: com.studentList.map((stu) => stu.userId).join(","),
           });