lex il y a 1 an
Parent
commit
a2676b24f4

+ 7 - 3
src/views/prepare-lessons/components/lesson-main/courseware/index.tsx

@@ -509,7 +509,7 @@ export default defineComponent({
 
                 if (forms.classGroupId) {
                   // 开始上课
-                  await courseScheduleStart({
+                  const res = await courseScheduleStart({
                     lessonCoursewareKnowledgeDetailId: prepareStore.selectKey,
                     classGroupId: forms.classGroupId
                   });
@@ -522,7 +522,9 @@ export default defineComponent({
                       type: 'class',
                       classGroupId: forms.classGroupId,
                       subjectId: prepareStore.getSubjectId,
-                      detailId: prepareStore.getSelectKey
+                      detailId: prepareStore.getSelectKey,
+                      classId: res.data,
+                      lessonCourseId: prepareStore.getBaseCourseware.id
                     };
                   } else {
                     const { href } = router.resolve({
@@ -531,7 +533,9 @@ export default defineComponent({
                         type: 'class',
                         classGroupId: forms.classGroupId,
                         subjectId: prepareStore.getSubjectId,
-                        detailId: prepareStore.getSelectKey
+                        detailId: prepareStore.getSelectKey,
+                        classId: res.data,
+                        lessonCourseId: prepareStore.getBaseCourseware.id
                       }
                     });
                     window.open(href, +new Date() + '');