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 dcdb8aa9f..f1c4dfaea 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 @@ -372,7 +372,7 @@ const imageExtensions = ['JPG', 'JPEG', 'PNG', 'GIF', 'BMP'] const documentExtensions = ['PDF', 'DOCX', 'TXT', 'XLS', 'XLSX', 'MD', 'HTML', 'CSV'] const videoExtensions: any = [] const audioExtensions = ['MP3', 'WAV', 'OGG', 'AAC', 'M4A'] -let otherExtensions = ref(['PPT', 'DOC']) +const otherExtensions = ref(['PPT', 'DOC']) const getAcceptList = () => { const { image, document, audio, video, other } = props.applicationDetails.file_upload_setting @@ -554,7 +554,7 @@ const switchMicrophone = (status: boolean) => { } } -const TouchEnd = (bool?: Boolean) => { +const TouchEnd = (bool?: boolean) => { if (bool) { stopRecording() recorderStatus.value = 'STOP' diff --git a/ui/src/components/ai-chat/component/control/index.vue b/ui/src/components/ai-chat/component/control/index.vue index 4b4645b16..bb9a3ce54 100644 --- a/ui/src/components/ai-chat/component/control/index.vue +++ b/ui/src/components/ai-chat/component/control/index.vue @@ -99,7 +99,7 @@ const menus = ref([ */ const clearSelectedText = () => { if (window.getSelection) { - var selection = window.getSelection() + const selection = window.getSelection() if (selection) { selection.removeAllRanges() } diff --git a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue index c777f25ac..26065a81c 100644 --- a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue +++ b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue @@ -1,253 +1,106 @@