Commit 69976bfe authored by gengchunlei's avatar gengchunlei

居民端小程序 v1.2 图片上传大小限制调整

parent db8a9da7
......@@ -47,7 +47,7 @@ export default {
},
props: {
// 上传描述
description: { default: '温馨提示:请上传JPG、PNG格式图片,文件大小不超过5M' },
description: { default: '温馨提示:请上传JPG、PNG格式图片,文件大小不超过10M' },
// 传入的img数据 { id, trueDownloadUrl }
imageData: { default: () => [] },
// 上传按键的文字
......@@ -125,8 +125,8 @@ export default {
showToast('未选中文件,请尝试重新选择')
return
}
if (files[0].size / 1024 / 1024 > 5) {
showToast('图片大小不能超过5M')
if (files[0].size / 1024 / 1024 > 10) {
showToast('图片大小不能超过10M')
return
}
this.file = files[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment