mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
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:
parent
ac7bad5262
commit
c13219e72b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue