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 }); }