本地文件上传,默认不筛选文件后缀

This commit is contained in:
COOL 2022-05-23 14:25:57 +08:00
parent 17435158a0
commit 06be4e6097

View File

@ -13,6 +13,7 @@ export default {
// 文件上传
upload: {
fileSize: '200mb',
whitelist: () => true,
},
// 模板渲染
view: {
@ -45,7 +46,7 @@ export default {
file: {
// 上传模式 本地上传或云存储
mode: MODETYPE.LOCAL,
// 本地上传 文件地址前缀
// 本地上传 文件地址前缀当且仅当mode为LOCAL时生效
domain: 'http://127.0.0.1:8001',
},
} as CoolConfig,