Commit 69976bfe authored by gengchunlei's avatar gengchunlei

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

parent db8a9da7
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
}, },
props: { props: {
// 上传描述 // 上传描述
description: { default: '温馨提示:请上传JPG、PNG格式图片,文件大小不超过5M' }, description: { default: '温馨提示:请上传JPG、PNG格式图片,文件大小不超过10M' },
// 传入的img数据 { id, trueDownloadUrl } // 传入的img数据 { id, trueDownloadUrl }
imageData: { default: () => [] }, imageData: { default: () => [] },
// 上传按键的文字 // 上传按键的文字
...@@ -125,8 +125,8 @@ export default { ...@@ -125,8 +125,8 @@ export default {
showToast('未选中文件,请尝试重新选择') showToast('未选中文件,请尝试重新选择')
return return
} }
if (files[0].size / 1024 / 1024 > 5) { if (files[0].size / 1024 / 1024 > 10) {
showToast('图片大小不能超过5M') showToast('图片大小不能超过10M')
return return
} }
this.file = files[0] 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