Browse Source

我解锁音频9

zhangyujun 3 năm trước cách đây
mục cha
commit
1cc939217f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();