提交 c9566589 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 8a2aca49
...@@ -33,7 +33,7 @@ export default function AIModal() { ...@@ -33,7 +33,7 @@ export default function AIModal() {
const handleEnterSearch = (e) => { const handleEnterSearch = (e) => {
if (e.key === 'Enter' && !e.shiftKey) { if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault() e.preventDefault()
handleSearch() !isLoading && handleSearch()
} }
} }
const handleSearch = () => { const handleSearch = () => {
......
...@@ -53,7 +53,7 @@ export default function AIModal() { ...@@ -53,7 +53,7 @@ export default function AIModal() {
const handleEnterSearch = (e) => { const handleEnterSearch = (e) => {
if (e.key === 'Enter' && !e.shiftKey) { if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault() e.preventDefault()
handleSearch() !isLoading && handleSearch()
} }
} }
const handleSearch = () => { const handleSearch = () => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论