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 @@ -765,21 +765,21 @@ const stopTimer = () => {
765765
766766const 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 }
You can’t perform that action at this time.
0 commit comments