fix: rename isDisabledChart to isDisabledChat in chat-input-operate component (#2488)

This commit is contained in:
Yang Chen 2025-03-04 19:32:49 +08:00 committed by GitHub
parent e420a01e0d
commit d60836798b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,11 +181,11 @@
v-if="!startRecorderTime && !recorderLoading"
text
class="sent-button"
:disabled="isDisabledChart || loading"
:disabled="isDisabledChat || loading"
@click="sendChatHandle"
>
<img v-show="isDisabledChart || loading" src="@/assets/icon_send.svg" alt="" />
<SendIcon v-show="!isDisabledChart && !loading" />
<img v-show="isDisabledChat || loading" src="@/assets/icon_send.svg" alt="" />
<SendIcon v-show="!isDisabledChat && !loading" />
</el-button>
</div>
</div>
@ -395,7 +395,7 @@ const showDelete = ref('')
//
const mediaRecorder = ref<any>(null)
const isDisabledChart = computed(
const isDisabledChat = computed(
() => !(inputValue.value.trim() && (props.appId || props.applicationDetails?.name))
)
@ -529,13 +529,13 @@ function sendChatHandle(event?: any) {
if (!event?.ctrlKey) {
// ctrl
event?.preventDefault()
if (!isDisabledChart.value && !props.loading && !event?.isComposing) {
if (!isDisabledChat.value && !props.loading && !event?.isComposing) {
if (inputValue.value.trim()) {
autoSendMessage()
}
}
} else {
// ctrl+
// ctrl+
insertNewlineAtCursor()
}
}