黄琪勇 hai 1 ano
pai
achega
c56fbc42af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/state.ts

+ 1 - 1
src/state.ts

@@ -670,7 +670,7 @@ export const togglePlay = async (playState?: "play" | "paused", sourceType?: str
     return
   }
   // 播放之前  当为评测模式和不为MIDI时候按  是否禁用节拍器  切换音源
-  if (state.modeType === "practise" && state.playMode !== "MIDI") {
+  if ((playState ? playState : state.playState === "paused" ? "play" : "paused") ==='play' && state.modeType === "practise" && state.playMode !== "MIDI") {
     console.log("设置音源")
     changeSongSourceByBate(metronomeData.disable)
   }