Ver Fonte

我解锁音频9

zhangyujun há 3 anos atrás
pai
commit
2dbef47742
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      src/hooks/light/audio.ts

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

@@ -29,6 +29,9 @@ export function useAudio() {
             sound.on('playerror',(err)=>{
                 alert(err)
              })
+             sound.on('loaderror',(err)=>{
+                alert(err)
+             })
             sound.once("load", function () {
                 let id = sound.play();
                 if (id) {