fix(attachment): 补充上传大小配置的单位与标签
- SPA Schema 的大小限制 repeat 子字段补上 unit: 'M',避免数字被 误读为数量;PHP Schema 早已带单位,两侧一致 - 标签「可上传」改为「可上传大小」,与单位 M 搭配后语义明确 - 管理端 SPA 已重新构建,421 项契约测试通过
This commit is contained in:
@@ -24,7 +24,7 @@ const uploadMimeUserTypeOptions = [
|
||||
|
||||
const uploadSizeFields = [
|
||||
{ key: 'type', label: '用户类型', type: 'select', default: 'logged', options: uploadUserTypeOptions },
|
||||
{ key: 'val', label: '可上传', type: 'number', default: 30, min: 1, max: 2048 },
|
||||
{ key: 'val', label: '可上传大小', type: 'number', default: 30, min: 1, max: 2048, unit: 'M' },
|
||||
]
|
||||
|
||||
export const permissionsSchemas = {
|
||||
|
||||
Reference in New Issue
Block a user