mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: typos (#3965)
This commit is contained in:
parent
f6aaac4e00
commit
617937fe58
|
|
@ -765,21 +765,21 @@ const stopTimer = () => {
|
|||
|
||||
const getQuestion = () => {
|
||||
if (!inputValue.value.trim()) {
|
||||
const fileLenth = [
|
||||
const fileLength = [
|
||||
uploadImageList.value.length > 0,
|
||||
uploadDocumentList.value.length > 0,
|
||||
uploadAudioList.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')
|
||||
} else if (fileLenth[0]) {
|
||||
} else if (fileLength[0]) {
|
||||
return t('chat.uploadFile.imageMessage')
|
||||
} else if (fileLenth[1]) {
|
||||
} else if (fileLength[1]) {
|
||||
return t('chat.uploadFile.documentMessage')
|
||||
} else if (fileLenth[2]) {
|
||||
} else if (fileLength[2]) {
|
||||
return t('chat.uploadFile.audioMessage')
|
||||
} else if (fileLenth[3]) {
|
||||
} else if (fileLength[3]) {
|
||||
return t('chat.uploadFile.otherMessage')
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue