Selaa lähdekoodia

Update class-info.tsx

lex 2 vuotta sitten
vanhempi
commit
98610e8ae9
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      src/teacher/video-class/class-info.tsx

+ 6 - 0
src/teacher/video-class/class-info.tsx

@@ -90,6 +90,12 @@ export default defineComponent({
   },
   methods: {
     onChoice(id: number) {
+      // 切换声部,初始化专辑,曲目选择
+      if (id != createState.lessonGroup.lessonSubject) {
+        createState.lessonList.forEach((element: any) => {
+          element.relationList = []
+        })
+      }
       createState.lessonGroup.lessonSubject = id
       this.subjectStatus = false
     },