黄琪勇 1 년 전
부모
커밋
8131c8b3ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/view/audio-list/index.tsx

+ 1 - 1
src/view/audio-list/index.tsx

@@ -127,7 +127,7 @@ export const detectTheNumberOfSoundSources = () => {
 /** 切换节拍器音源 */
 export const changeSongSourceByBate = (isDisBate:boolean) => {
 	// isDisBate 为true 切换到不带节拍的,为false 切换到带节拍的
-	if(audioData.songEle && audioData.backgroundEle){
+	if(audioData.songCollection.songEle && audioData.songCollection.backgroundEle && audioData.songCollection.beatSongEle && audioData.songCollection.bateBackgroundEle){
 		const songEleCurrentTime = audioData.songEle.currentTime
 		const backgroundEleCurrentTime = audioData.backgroundEle.currentTime
 		console.log("当前音乐时间:",songEleCurrentTime,backgroundEleCurrentTime)