Browse Source

解锁音频5

zhangyujun 3 years ago
parent
commit
273715855a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/hooks/light/audio.ts

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

@@ -19,6 +19,8 @@ export function useAudio() {
         pauseAudio()
         sound = new Howl({
             src: url,
+            preload:false,
+            html5:true,
             autoplay: true
         });
         return new Promise((resolve, reject) => {