Browse Source

点击空白的时候 暂停播放的时候 向外派发事件

黄琪勇 1 week ago
parent
commit
3b25c80f62
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/page-instrument/view-detail/index.tsx

+ 8 - 0
src/page-instrument/view-detail/index.tsx

@@ -647,6 +647,14 @@ export default defineComponent({
             if (state.playState === "play" || followData.start || evaluatingData.startBegin) {
               headerColumnHide.value = !headerColumnHide.value;
             }
+            if(state.playState === "paused") {
+              window.parent.postMessage(
+                {
+                  api: "changeTogge"
+                },
+                "*"
+              );
+            }
           }}
         >
           {/* 曲谱渲染 */}