BUG 28392

This commit is contained in:
aixianling
2022-03-21 18:14:42 +08:00
parent 10d4c88886
commit 061d7e9b30

View File

@@ -87,8 +87,10 @@ export default {
this.$emit('list', this.fileList)
},
upload(wait) {
let count = this.limit - (this.fileList?.length||0)
if(count>0){
let params = {
count: this.limit,
count,
sizeType: ['compressed'],
sourceType: ['album', 'camera'],
success: (res) => {
@@ -113,6 +115,9 @@ export default {
} else {
uni.chooseFile(params)
}
}else{
this.$u.toast(`不能超过${this.limit}`)
}
},
uploadFile(img) {
if (this.size > 0 && img.size > this.size) {