Forráskód Böngészése

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

TIANYONG 8 hónapja
szülő
commit
3a5ab6df26
1 módosított fájl, 2 hozzáadás és 1 törlés
  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,