Bläddra i källkod

Merge branch 'feature-wxl-newVersion' into ktyq-test-new

lex-xin 10 månader sedan
förälder
incheckning
826002de7e
1 ändrade filer med 8 tillägg och 6 borttagningar
  1. 8 6
      src/page-instrument/header-top/index.tsx

+ 8 - 6
src/page-instrument/header-top/index.tsx

@@ -560,12 +560,14 @@ export default defineComponent({
         togglePlay("paused", true);
       }
       if(res?.data?.api === 'togglePlayState') {
-        if(state.playState === "play") {
-          togglePlay("paused");
-        }
-        if(state.playState === 'paused') {
-          togglePlay("play");
-        }
+        // if(state.playState === "play") {
+        //   togglePlay("paused");
+        // }
+        // if(state.playState === 'paused') {
+        //   togglePlay("play");
+        // }
+        console.log('togglePlayState', state.playState)
+        togglePlay(state.playState === "play" ? "paused" : "play");
       }
       // 上课页面,按钮方向
       if (res?.data?.api === "imagePos") {