From 70853005d975488aa9856b994ebce09a6b6edbd4 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Tue, 30 Apr 2024 15:08:10 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E5=BA=97=E9=93=BA/=E4=B8=8A=E4=BC=A0):[#13?= =?UTF-8?q?68]=E5=BA=97=E9=93=BA=E4=B8=BB=E9=A1=B5=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=BA=97=E9=93=BA=E5=9B=BE=E7=89=87=EF=BC=8C=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=90=8E=E6=B2=A1=E6=9C=89=E6=98=BE=E7=A4=BA=E5=88=9A=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=9A=84=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tm-upload/tm-upload.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/tm-upload/tm-upload.vue b/components/tm-upload/tm-upload.vue index 67be4a0..3a54c34 100644 --- a/components/tm-upload/tm-upload.vue +++ b/components/tm-upload/tm-upload.vue @@ -155,9 +155,9 @@ export default { }); }); - /* uni.showLoading({ + uni.showLoading({ title: `正在上传...`, - }); */ + }) Promise.all(promises).then((data) => { // uni.hideLoading(); @@ -165,9 +165,10 @@ export default { this.upload_cache_list.push(...data); console.log("after uploaded upload_cache_list:"+JSON.stringify(this.upload_cache_list)) this.emit(); + uni.hideLoading() }).catch((res) => { console.log(res); - // uni.hideLoading(); + uni.hideLoading() }); }, choose() {