Browse Source

调整点击事件

wangxy 2 days ago
parent
commit
a7ed573dae
1 changed files with 1 additions and 3 deletions
  1. 1 3
      pages/newEnglish/components/useAudio.js

+ 1 - 3
pages/newEnglish/components/useAudio.js

@@ -17,9 +17,7 @@ audioContext.onEnded(() => {
 	// console.log('触发播放结束')
 	// 播放结束
 	uni.$emit('danci-audio-ended', code)
-	setTimeout(() => {
-		audioContext?.stop();
-	},100)
+	audioContext?.stop();
 
 })
 audioContext.onPlay(() => {