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 3670b8537..0c557bbfb 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
@@ -6,7 +6,12 @@
@@ -248,14 +253,21 @@ const getAcceptList = () => {
const checkMaxFilesLimit = () => {
return (
props.applicationDetails.file_upload_setting.maxFiles <=
- uploadImageList.value.length + uploadDocumentList.value.length + uploadAudioList.value.length + uploadVideoList.value.length
+ uploadImageList.value.length +
+ uploadDocumentList.value.length +
+ uploadAudioList.value.length +
+ uploadVideoList.value.length
)
}
const uploadFile = async (file: any, fileList: any) => {
const { maxFiles, fileLimit } = props.applicationDetails.file_upload_setting
// 单次上传文件数量限制
- const file_limit_once = uploadImageList.value.length + uploadDocumentList.value.length + uploadAudioList.value.length + uploadVideoList.value.length
+ const file_limit_once =
+ uploadImageList.value.length +
+ uploadDocumentList.value.length +
+ uploadAudioList.value.length +
+ uploadVideoList.value.length
if (file_limit_once >= maxFiles) {
MsgWarning('最多上传' + maxFiles + '个文件')
fileList.splice(0, fileList.length)
@@ -283,7 +295,6 @@ const uploadFile = async (file: any, fileList: any) => {
uploadAudioList.value.push(file)
}
-
if (!chatId_context.value) {
const res = await props.openChatId()
chatId_context.value = res
@@ -332,6 +343,9 @@ const uploadFile = async (file: any, fileList: any) => {
file.file_id = f[0].file_id
}
})
+ if (!inputValue.value && uploadImageList.value.length > 0) {
+ inputValue.value = '请解析图片内容'
+ }
})
}
const recorderTime = ref(0)
@@ -471,7 +485,7 @@ function sendChatHandle(event: any) {
image_list: uploadImageList.value,
document_list: uploadDocumentList.value,
audio_list: uploadAudioList.value,
- video_list: uploadVideoList.value,
+ video_list: uploadVideoList.value
})
inputValue.value = ''
uploadImageList.value = []
diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue
index 3b2df8f21..97eba9c05 100644
--- a/ui/src/views/application/index.vue
+++ b/ui/src/views/application/index.vue
@@ -171,7 +171,7 @@ const applicationList = ref([])
const paginationConfig = reactive({
current_page: 1,
- page_size: 20,
+ page_size: 30,
total: 0
})
interface UserOption {