From 0240b50a73dd7c63df106d7ceb7b96e3c1820189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Tue, 14 Oct 2025 13:32:07 +0800 Subject: [PATCH] =?UTF-8?q?brand=E4=B8=8A=E4=BC=A0=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=87=BA=E7=8E=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/LibraryPage/brandDetail.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/component/LibraryPage/brandDetail.vue b/src/component/LibraryPage/brandDetail.vue index 8da391b9..47c97c2e 100644 --- a/src/component/LibraryPage/brandDetail.vue +++ b/src/component/LibraryPage/brandDetail.vue @@ -175,7 +175,7 @@ export default defineComponent({ isNoData:false,//如果数据为空就不加载 isNull:true, finishTime:'', - upLoadList:0, + uploadCount:0,//上传的图片数量 }) const dataDom = reactive({ Cropper:null as any, @@ -184,6 +184,7 @@ export default defineComponent({ loadingDom:null as any, }) const customRequest = (event:any)=>{ + data.uploadCount++; let new_data = { file:event.file, brandId:data.detail.id, @@ -191,7 +192,9 @@ export default defineComponent({ data.isShowMark = true Https.axiosPost(Https.httpUrls.brandDNAUpload, new_data,{headers:{'Content-Type': 'multipart/form-data'}}).then( (rv: any) => { + data.uploadCount --; dataDom.fall.clearData() + if(data.uploadCount) return; data.isShowMark = false data.isNoData = false data.currentPage = 1 @@ -201,6 +204,7 @@ export default defineComponent({ } ).catch((res)=>{ // getLibraryList() + data.uploadCount --; data.isShowMark = false }); }