fix: Manually adding file types to the workflow knowledge base cannot upload files after adding them in lowercase letters (#4498)

This commit is contained in:
shaohuzhang1 2025-12-11 15:30:56 +08:00 committed by GitHub
parent f6102b1457
commit 8c1aeae0ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,10 +130,10 @@ const accept = computed(() => {
return (attrs.file_type_list || []).map((item: any) => '.' + item.toLowerCase()).join(',')
})
const file_type_list = computed(() => {
return attrs.file_type_list || []
return attrs.file_type_list.map((item: any) => item.toUpperCase()) || []
})
const formats = computed(() => {
return (attrs.file_type_list || []).map((item: any) => item.toUpperCase()).join('、')
return file_type_list.value.join('、')
})
const file_size_limit = computed(() => {
return attrs.file_size_limit || 50