寒鸟
寒鸟
  • 发布:2025-10-22 12:35
  • 更新:2025-10-22 12:35
  • 阅读:10

schema.json 生成的文件有问题

分类:uni-app

schema.json 生成的文件有问题!
如配置:
"thumb_logo": {
"bsonType": "array",
"title": "封面LOGO",
"description": "必填,建议尺寸1:1,支持jpg/png格式",
"items": { "bsonType": "string" },
"minimum": 0,
"maximum": 1,
"componentForEdit": {
"name": "uni-file-picker",
"props": {
"autoUpload": false,
"fileExtname": "jpg,jpeg,png",
"maxSize": 5242880,
"uploadUrl": "/cloudfunction/uploadImage",
"filePath": "activity/thumb/",
"previewFullImage": true,
"returnType": "array",
"urlKey": "filePath",
"title": "点击上传封面图(必填)",
"labelWidth": "200rpx"
}
},
"errorMessage": {
"required": "请上传封面LOGO",
"minimum": "请至少上传1张封面图"
}
},
"banner_imgs": {
"bsonType": "array",
"title": "活动详情图",
"description": "1-5张,支持图片或视频,建议尺寸16:9",
"items": { "bsonType": "string" },
"minimum": 1,
"maximum": 5,
"componentForEdit": {
"name": "uni-file-picker",
"props": {
"limit": 5,
"autoUpload": false,
"fileExtname": "jpg,jpeg,png,mp4",
"maxSize": 10485760,
"uploadUrl": "/cloudfunction/uploadImage",
"filePath": "activity/banner/",
"previewFullImage": true,
"returnType": "array",
"urlKey": "filePath",
"title": "点击上传详情图(1-5张,必填)",
"labelWidth": "200rpx"
}
},
"errorMessage": {
"required": "请上传活动详情图",
"minimum": "请至少上传1张详情图",
"maximum": "最多上传5张详情图"
}
},

这样在add页面上传了文件,但是 还是提示没有上传文件“请至少上传1张封面图"”

2025-10-22 12:35 负责人:无 分享
已邀请:

要回复问题请先登录注册