mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-04 18:10:02 +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 (!userInput.trim()) return;
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
|
e.preventDefault()
|
||||||
setUserInput((state) => state + '\n');
|
setUserInput((state) => state + '\n');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user