lsc пре 2 недеља
родитељ
комит
4ab0a56892
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/views/Student/index.vue

+ 2 - 1
src/views/Student/index.vue

@@ -1966,7 +1966,6 @@ const selectCourseSLook = async (type = 2) => {
       await api.updateCourseFollowC(slideIndex.value, props.courseid as string)
       sendMessage({slideIndex: slideIndex.value, courseid: props.courseid, type: 'slideIndex'})
       console.log('设置当前幻灯片为跟随目标:', slideIndex.value)
-      checkParentMode()
     }
   }
   else {
@@ -1978,6 +1977,8 @@ const selectCourseSLook = async (type = 2) => {
   if (props.type == '2') {
     message.success(isFollowModeActive.value ? '跟随模式已开启' : '自由模式已开启')
   }
+  
+  checkParentMode()
 }
 
 // 切换跟随模式