From 5c9be633471525503c80a82af54db24a29357070 Mon Sep 17 00:00:00 2001 From: zhonghua Date: Wed, 25 Mar 2026 09:59:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(teacher):=20=E8=AF=BE=E7=A8=8B=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E4=B8=BA=E7=A9=BA=E6=97=B6=E7=A6=81=E7=94=A8=E5=B1=95?= =?UTF-8?q?=E6=92=AD=E6=A8=A1=E5=BC=8F=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- .../src/views/teacher/lessons/LessonView.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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'); };