This commit is contained in:
bb_pan 2025-01-23 18:44:35 +08:00
parent fd92dab4c8
commit 4c0eb24b0c
1 changed files with 3 additions and 2 deletions

View File

@ -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 => {