Ver código fonte

我解锁音频6

zhangyujun 3 anos atrás
pai
commit
1dab39174f
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/hooks/light/audio.ts

+ 3 - 3
src/hooks/light/audio.ts

@@ -25,9 +25,9 @@ export function useAudio() {
             sound.on('unlock',()=>{
                alert("我解锁了")
             })
-            // sound.on('playerror',(err)=>{
-            //     alert(err)
-            //  })
+            sound.on('playerror',(err)=>{
+                alert(err)
+             })
             sound.once("load", function () {
                 let id = sound.play();
                 if (id) {