Skip to content

Commit e2a4b86

Browse files
committed
fix: typos
1 parent f6aaac4 commit e2a4b86

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
@@ -765,21 +765,21 @@ const stopTimer = () => {
765765
766766
const getQuestion = () => {
767767
if (!inputValue.value.trim()) {
768-
const fileLenth = [
768+
const fileLength = [
769769
uploadImageList.value.length > 0,
770770
uploadDocumentList.value.length > 0,
771771
uploadAudioList.value.length > 0,
772772
uploadOtherList.value.length > 0,
773773
]
774-
if (fileLenth.filter((f) => f).length > 1) {
774+
if (fileLength.filter((f) => f).length > 1) {
775775
return t('chat.uploadFile.otherMessage')
776-
} else if (fileLenth[0]) {
776+
} else if (fileLength[0]) {
777777
return t('chat.uploadFile.imageMessage')
778-
} else if (fileLenth[1]) {
778+
} else if (fileLength[1]) {
779779
return t('chat.uploadFile.documentMessage')
780-
} else if (fileLenth[2]) {
780+
} else if (fileLength[2]) {
781781
return t('chat.uploadFile.audioMessage')
782-
} else if (fileLenth[3]) {
782+
} else if (fileLength[3]) {
783783
return t('chat.uploadFile.otherMessage')
784784
}
785785
}

0 commit comments

Comments
 (0)