Browse Source

测试播放功能2

zhangyujun 3 năm trước cách đây
mục cha
commit
39562a4d16
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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,