瀏覽代碼

feat: 增加参数hideMode隐藏模式切换

TIANYONG 8 月之前
父節點
當前提交
3a5ab6df26
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/page-instrument/header-top/index.tsx

+ 2 - 1
src/page-instrument/header-top/index.tsx

@@ -437,7 +437,8 @@ export default defineComponent({
       if (headTopData.modeType !== "show" || !headTopData.showBack) return { display: false, disabled: false };
       // 跟练开始, 评测开始 播放开始 隐藏
       if (state.playState == "play" || followData.start || evaluatingData.startBegin) return { display: true, disabled: true };
-
+      // 课件播放,上课页面潜入云教练,不显示模式切换
+      if (query.hideMode == 1) return { display: false, disabled: false };
       return {
         display: true,
         disabled: false,