Skip to content

Commit d608367

Browse files
authored
fix: rename isDisabledChart to isDisabledChat in chat-input-operate component (#2488)
1 parent e420a01 commit d608367

File tree

1 file changed

+6
-6
lines changed
  • ui/src/components/ai-chat/component/chat-input-operate

1 file changed

+6
-6
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@
181181
v-if="!startRecorderTime && !recorderLoading"
182182
text
183183
class="sent-button"
184-
:disabled="isDisabledChart || loading"
184+
:disabled="isDisabledChat || loading"
185185
@click="sendChatHandle"
186186
>
187-
<img v-show="isDisabledChart || loading" src="@/assets/icon_send.svg" alt="" />
188-
<SendIcon v-show="!isDisabledChart && !loading" />
187+
<img v-show="isDisabledChat || loading" src="@/assets/icon_send.svg" alt="" />
188+
<SendIcon v-show="!isDisabledChat && !loading" />
189189
</el-button>
190190
</div>
191191
</div>
@@ -395,7 +395,7 @@ const showDelete = ref('')
395395
396396
// 定义响应式引用
397397
const mediaRecorder = ref<any>(null)
398-
const isDisabledChart = computed(
398+
const isDisabledChat = computed(
399399
() => !(inputValue.value.trim() && (props.appId || props.applicationDetails?.name))
400400
)
401401
@@ -529,13 +529,13 @@ function sendChatHandle(event?: any) {
529529
if (!event?.ctrlKey) {
530530
// 如果没有按下组合键ctrl,则会阻止默认事件
531531
event?.preventDefault()
532-
if (!isDisabledChart.value && !props.loading && !event?.isComposing) {
532+
if (!isDisabledChat.value && !props.loading && !event?.isComposing) {
533533
if (inputValue.value.trim()) {
534534
autoSendMessage()
535535
}
536536
}
537537
} else {
538-
// 如果同时按下ctrl+回车键,则会换行
538+
// 如果同时按下ctrl+回车键,则会换行
539539
insertNewlineAtCursor()
540540
}
541541
}

0 commit comments

Comments
 (0)