From 80801979fe9ff8fdc81092a25b7c3f4fd23b2733 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 30 Apr 2024 13:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=89=93=E5=8C=85=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/uploadZip.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;