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