Browse Source

测试播放功能2

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

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

@@ -16,7 +16,7 @@ export function useAudio() {
 
     }
     let playAudio = (url: string) => {
-        stopAudio()
+        pauseAudio()
         sound = new Howl({
             src: url,
             html5: true,