mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-14 11:12:51 +00:00
本地文件上传,默认不筛选文件后缀
This commit is contained in:
parent
17435158a0
commit
06be4e6097
@ -13,6 +13,7 @@ export default {
|
|||||||
// 文件上传
|
// 文件上传
|
||||||
upload: {
|
upload: {
|
||||||
fileSize: '200mb',
|
fileSize: '200mb',
|
||||||
|
whitelist: () => true,
|
||||||
},
|
},
|
||||||
// 模板渲染
|
// 模板渲染
|
||||||
view: {
|
view: {
|
||||||
@ -45,7 +46,7 @@ export default {
|
|||||||
file: {
|
file: {
|
||||||
// 上传模式 本地上传或云存储
|
// 上传模式 本地上传或云存储
|
||||||
mode: MODETYPE.LOCAL,
|
mode: MODETYPE.LOCAL,
|
||||||
// 本地上传 文件地址前缀
|
// 本地上传 文件地址前缀,当且仅当mode为LOCAL时生效
|
||||||
domain: 'http://127.0.0.1:8001',
|
domain: 'http://127.0.0.1:8001',
|
||||||
},
|
},
|
||||||
} as CoolConfig,
|
} as CoolConfig,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user