文件打包下载
continuous-integration/drone/push Build is failing Details

main
wangxiaoshuang 2024-04-30 13:20:13 +08:00
parent 66eb44ef05
commit 80801979fe
1 changed files with 4 additions and 2 deletions

View File

@ -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;