fix(web): chat input add loading

This commit is contained in:
zhaoying
2026-02-10 12:19:48 +08:00
parent 787adf5423
commit 01458ac111
3 changed files with 11 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing
* @Date: 2025-12-10 16:46:14
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-09 10:26:38
* @Last Modified time: 2026-02-10 12:13:52
*/
import { type FC, useEffect, useMemo } from 'react'
import { Flex, Input, Form } from 'antd'
@@ -60,6 +60,7 @@ const ChatInput: FC<ChatInputProps> = ({
}, [fileList])
const handleSend = () => {
if (loading || !values || !values?.message || values?.message?.trim() === '') return
onSend(values.message)
}