mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
chore: 替换改为增加
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user