From 4c0eb24b0c3031e075ae59a9234ee3b279851428 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 23 Jan 2025 18:44:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/arrivalConfirmation/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 => {