From dbb6493712a74489145b972aa54693697e437835 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?=
<7854742+wang_rumeng@user.noreply.gitee.com>
Date: Tue, 26 Aug 2025 00:52:24 +0800
Subject: [PATCH] =?UTF-8?q?chatbox=20=E5=BF=85=E9=A1=BB=E8=BE=93=E5=85=A5?=
=?UTF-8?q?=E6=96=87=E5=AD=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/SmartChatBox/InputBar.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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()}
>