fix type error of placeholder

This commit is contained in:
JzoNg
2025-12-03 19:48:24 +08:00
parent 882d2f5b4c
commit 202f924d99
8 changed files with 17 additions and 47 deletions

View File

@ -773,11 +773,11 @@ export const useWorkflowRun = () => {
onTTSChunk: (messageId: string, audio: string) => {
if (!audio || audio === '')
return
player.playAudioWithAudio(audio, true)
player?.playAudioWithAudio(audio, true)
AudioPlayerManager.getInstance().resetMsgId(messageId)
},
onTTSEnd: (messageId: string, audio: string) => {
player.playAudioWithAudio(audio, false)
player?.playAudioWithAudio(audio, false)
},
onWorkflowSuspended: (params) => {
handleWorkflowSuspended()