File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
ui/src/components/ai-chat/component/chat-input-operate Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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// 定义响应式引用
397397const 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}
You can’t perform that action at this time.
0 commit comments