Explorar o código

我解锁音频6

zhangyujun %!s(int64=3) %!d(string=hai) anos
pai
achega
1dab39174f
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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) {