fix: typos (#3965)

v3.2
shaohuzhang1 2025-08-29 12:00:30 +08:00 committed by GitHub
parent f6aaac4e00
commit 617937fe58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -765,21 +765,21 @@ const stopTimer = () => {
const getQuestion = () => { const getQuestion = () => {
if (!inputValue.value.trim()) { if (!inputValue.value.trim()) {
const fileLenth = [ const fileLength = [
uploadImageList.value.length > 0, uploadImageList.value.length > 0,
uploadDocumentList.value.length > 0, uploadDocumentList.value.length > 0,
uploadAudioList.value.length > 0, uploadAudioList.value.length > 0,
uploadOtherList.value.length > 0, uploadOtherList.value.length > 0,
] ]
if (fileLenth.filter((f) => f).length > 1) { if (fileLength.filter((f) => f).length > 1) {
return t('chat.uploadFile.otherMessage') return t('chat.uploadFile.otherMessage')
} else if (fileLenth[0]) { } else if (fileLength[0]) {
return t('chat.uploadFile.imageMessage') return t('chat.uploadFile.imageMessage')
} else if (fileLenth[1]) { } else if (fileLength[1]) {
return t('chat.uploadFile.documentMessage') return t('chat.uploadFile.documentMessage')
} else if (fileLenth[2]) { } else if (fileLength[2]) {
return t('chat.uploadFile.audioMessage') return t('chat.uploadFile.audioMessage')
} else if (fileLenth[3]) { } else if (fileLength[3]) {
return t('chat.uploadFile.otherMessage') return t('chat.uploadFile.otherMessage')
} }
} }