Browse Source

解锁音频14

zhangyujun 3 years ago
parent
commit
27cf248b3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/hooks/light/audio.ts

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

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