diff --git a/reading-platform-frontend/src/views/teacher/lessons/LessonView.vue b/reading-platform-frontend/src/views/teacher/lessons/LessonView.vue index 2dc7117..8ad5973 100644 --- a/reading-platform-frontend/src/views/teacher/lessons/LessonView.vue +++ b/reading-platform-frontend/src/views/teacher/lessons/LessonView.vue @@ -34,7 +34,12 @@ - + @@ -893,8 +898,12 @@ const nextStep = () => { } }; -// 打开展播模式(新标签页) +// 打开展播模式(新标签页);无课程级资源时展播无内容,与侧栏「课程资源」一致 const openBroadcastMode = () => { + if (!hasCourseResources.value) { + message.warning('暂无课程资源,无法进入展播模式'); + return; + } const broadcastUrl = `${window.location.origin}/teacher/broadcast/${lessonId.value}?lessonIndex=${currentLessonIndex.value}&stepIndex=${currentStepIndex.value}`; window.open(broadcastUrl, '_blank', 'noopener,noreferrer'); };