mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-30 07:11:56 +00:00
fix: Fix the problem of multiple line breaks in Q&A (#1573)
This commit is contained in:
parent
ac18363f2d
commit
6f66da4d5e
@ -60,6 +60,7 @@ function CompletionInput({ children, loading, onSubmit, handleFinish, ...props }
|
||||
if (!userInput.trim()) return;
|
||||
if (e.keyCode === 13) {
|
||||
if (e.shiftKey) {
|
||||
e.preventDefault()
|
||||
setUserInput((state) => state + '\n');
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user