src/components/chat/hooks/useAssistantContentOpt.ts
@@ -143,6 +143,7 @@ isEnterStop = false; const instance = BrowserSpeechSynthesis.getInstance(); instance.cancel(); activeSpeakItem.value = null; }; const speechClick = (item) => { @@ -162,6 +163,9 @@ activeSpeakItem.value = item; const instance = BrowserSpeechSynthesis.getInstance(); instance.onEnd(() => { resetSpeak(); }); if (isEnterStop) { instance.resume(); } else {