|
@@ -548,12 +548,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") {
|