diff --git a/components/SmartChatBox/InputBar.tsx b/components/SmartChatBox/InputBar.tsx index 5c6e8bf..c015596 100644 --- a/components/SmartChatBox/InputBar.tsx +++ b/components/SmartChatBox/InputBar.tsx @@ -225,12 +225,12 @@ export function InputBar({ onSend, setVideoPreview, initialVideoUrl, initialVide /> - {/* 发送按钮 */} + {/* 发送按钮 必须有文字 */} @@ -241,7 +241,7 @@ export function InputBar({ onSend, setVideoPreview, initialVideoUrl, initialVide onClick={handleSend} className="inline-flex items-center gap-2 p-2 my-2 rounded-full bg-[#f1f3f4] text-[#25294b] shadow disabled:text-white/25 disabled:border disabled:border-white/10 disabled:bg-[#1b1b1b80] disabled:cursor-not-allowed" data-alt="send-button" - disabled={!text.trim() && !imageUrl && !videoUrl} + disabled={!text.trim()} >