林旭祥 5 miesięcy temu
rodzic
commit
e042fc779d
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/utils/speech.ts

+ 1 - 0
src/utils/speech.ts

@@ -143,6 +143,7 @@ export const playMusic = (url: any) => {
 
 //取消播放
 export const speckCancel = () => {
+  speechText = '';
   if (speech && browserSupport == true) {
     speech?.cancel();
   } else {