Browse Source

视频交互组件预览修改获取id值

natasha 2 months ago
parent
commit
4a2de80cf6

+ 1 - 1
src/views/book/courseware/preview/components/video_interaction/ExercisePreview.vue

@@ -93,7 +93,7 @@ export default {
       this.loading = true;
       let data = {
         exercise_id: this.exercise_id,
-        courseware_id: this.$route.params.id,
+        courseware_id: this.$route.query.id,
       };
       GetCoursewareExerciseView(data)
         .then((res) => {