diff --git a/pages/arrivalConfirmation/index.vue b/pages/arrivalConfirmation/index.vue index cd73b68..9358dd1 100644 --- a/pages/arrivalConfirmation/index.vue +++ b/pages/arrivalConfirmation/index.vue @@ -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 => {