zhangyujun 3 anni fa
parent
commit
2dbef47742
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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) {