shish 3 лет назад
Родитель
Сommit
42ff216723
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      hdPad/src/utils/util.js

+ 0 - 5
hdPad/src/utils/util.js

@@ -313,11 +313,6 @@ export const hitVoice = () =>{
 	const innerAudioContext = uni.createInnerAudioContext()
 	innerAudioContext.autoplay = false
 	innerAudioContext.src = "/static/hit.mp3"
-	innerAudioContext.onPlay()
-	innerAudioContext.onError()
-	innerAudioContext.onPause(function() {
-		innerAudioContext.destroy()
-	})
 	innerAudioContext.play()
 }