detail ux

This commit is contained in:
archer
2023-07-30 12:45:15 +08:00
parent 5f5d439f55
commit 502d8d8c73
3 changed files with 13 additions and 2 deletions

View File

@@ -693,7 +693,7 @@ const ChatBox = (
}}
onKeyDown={(e) => {
// 触发快捷发送
if (e.keyCode === 13 && !e.shiftKey) {
if (isPc && e.keyCode === 13 && !e.shiftKey) {
handleSubmit((data) => sendPrompt(data, TextareaDom.current?.value))();
e.preventDefault();
}