This commit is contained in:
parent
fd92dab4c8
commit
4c0eb24b0c
|
|
@ -197,6 +197,7 @@ export default {
|
|||
})
|
||||
return
|
||||
}
|
||||
if (this.isLoading) return
|
||||
this.isLoading = true
|
||||
console.log('🚀 ~ uploadImg ~ this.imgList:', this.imgList)
|
||||
const uploadPromises = this.imgList.map(img => {
|
||||
|
|
@ -207,15 +208,15 @@ export default {
|
|||
|
||||
Promise.all(uploadPromises)
|
||||
.then(() => {
|
||||
this.isLoading = false
|
||||
console.log('所有图片上传成功')
|
||||
uni.showToast({
|
||||
title: '上传成功',
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.imgModal = false
|
||||
this.getList()
|
||||
this.imgModal = false
|
||||
this.isLoading = false
|
||||
}, 1000)
|
||||
})
|
||||
.catch(error => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue