Sfoglia il codice sorgente

测试播放功能2

zhangyujun 3 anni fa
parent
commit
39562a4d16
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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,