From d60836798bb5d1c55a78897d29adb3cc595e0a01 Mon Sep 17 00:00:00 2001
From: Yang Chen <73413979+bigcyy@users.noreply.github.com>
Date: Tue, 4 Mar 2025 19:32:49 +0800
Subject: [PATCH] fix: rename isDisabledChart to isDisabledChat in
chat-input-operate component (#2488)
---
.../ai-chat/component/chat-input-operate/index.vue | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue
index 8329de818..99a8a69c5 100644
--- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue
+++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue
@@ -181,11 +181,11 @@
v-if="!startRecorderTime && !recorderLoading"
text
class="sent-button"
- :disabled="isDisabledChart || loading"
+ :disabled="isDisabledChat || loading"
@click="sendChatHandle"
>
-
-
+
+
@@ -395,7 +395,7 @@ const showDelete = ref('')
// 定义响应式引用
const mediaRecorder = ref(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()
}
}