Parcourir la source

我解锁音频9

zhangyujun il y a 3 ans
Parent
commit
1cc939217f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/hooks/light/audio.ts

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

@@ -27,10 +27,10 @@ export function useAudio() {
                alert("我解锁了")
             })
             sound.on('playerror',(err)=>{
-                alert(err)
+                alert(err+",播放失败")
              })
              sound.on('loaderror',(err)=>{
-                alert(err)
+                alert(err+"加载失败")
              })
             sound.once("load", function () {
                 let id = sound.play();