From 4185ba6a5b7f210940d69e048c23cbc3a0e24e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Thu, 5 Mar 2026 19:22:33 +0800 Subject: [PATCH] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E=E5=90=89?= =?UTF-8?q?=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84=E9=9C=80?= =?UTF-8?q?=E6=B1=82=5Ffix=20=EF=BC=9Abug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/comment-input/comment-input.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/comment-input/comment-input.vue b/src/components/comment-input/comment-input.vue index c0146a6b..df8085fa 100644 --- a/src/components/comment-input/comment-input.vue +++ b/src/components/comment-input/comment-input.vue @@ -77,7 +77,7 @@ - 发送 + 发送 @@ -163,6 +163,9 @@ isFocus.value = true cursorLength.value = resStart.value || value.value.length } + const sendDisabled = computed(()=>{ + return value.value.length === 0 && fileList.value.length === 0 + }) const showEmoji = ref(false) const showEmojiNow = () => { showEmoji.value = !showEmoji.value