mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 15:46:39 +08:00
chore: 替换改为增加
This commit is contained in:
parent
f0b9068ddf
commit
b5a5558f40
@ -603,7 +603,9 @@ export function ChatActions(props: {
|
||||
};
|
||||
const onRecognitionEnd = (finalTranscript: string) => {
|
||||
console.log(finalTranscript);
|
||||
if (finalTranscript) props.setUserInput(finalTranscript);
|
||||
if (finalTranscript) {
|
||||
props.setUserInput((prevInput) => prevInput + finalTranscript);
|
||||
}
|
||||
if (config.sttConfig.engine !== DEFAULT_STT_ENGINE)
|
||||
setIsTranscription(false);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user