We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ebfc3 commit 18fa066Copy full SHA for 18fa066
ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue
@@ -86,6 +86,7 @@ import applicationApi from '@/api/application'
86
import { datetimeFormat } from '@/utils/time'
87
import { MsgError } from '@/utils/message'
88
import { t } from '@/locales'
89
+import bus from '@/bus'
90
const route = useRoute()
91
const {
92
params: { id }
@@ -277,6 +278,11 @@ const pausePlayAnswerText = () => {
277
278
}
279
280
onMounted(() => {
281
+ bus.on('pause-autoplay', () => {
282
+ pausePlayAnswerText()
283
+ // console.log(1234)
284
+ })
285
+ bus.emit('pause-autoplay')
286
// 第一次回答后自动播放, 打开历史记录不自动播放
287
if (props.tts && props.tts_autoplay && buttonData.value.write_ed && !buttonData.value.update_time) {
288
playAnswerText(buttonData.value.answer_text)
0 commit comments