diff --git a/src/utils/uploadZip.js b/src/utils/uploadZip.js index 5b01b3e..0e3a63d 100644 --- a/src/utils/uploadZip.js +++ b/src/utils/uploadZip.js @@ -15,6 +15,7 @@ export const downloadImage = async (id, id2) => { SubjectVisitId: id2 } let res = await requestPackageAndAnonymizImage(params); + flag[id2] = false; if (res.IsSuccess) { if (!res.Result) { Vue.prototype.$message.warning(Vue.prototype.$t("trials:upload:message:not")) @@ -28,10 +29,11 @@ export const downloadImage = async (id, id2) => { a.href = href; a.click(); URL.revokeObjectURL(href); - this.$nextTick(() => { + let timer = setTimeout(() => { a = null; href = null; - }); + timer = null; + }, 500) return 2; } else { return false;