文件打包下载
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
66eb44ef05
commit
80801979fe
|
@ -15,6 +15,7 @@ export const downloadImage = async (id, id2) => {
|
||||||
SubjectVisitId: id2
|
SubjectVisitId: id2
|
||||||
}
|
}
|
||||||
let res = await requestPackageAndAnonymizImage(params);
|
let res = await requestPackageAndAnonymizImage(params);
|
||||||
|
flag[id2] = false;
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
if (!res.Result) {
|
if (!res.Result) {
|
||||||
Vue.prototype.$message.warning(Vue.prototype.$t("trials:upload:message:not"))
|
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.href = href;
|
||||||
a.click();
|
a.click();
|
||||||
URL.revokeObjectURL(href);
|
URL.revokeObjectURL(href);
|
||||||
this.$nextTick(() => {
|
let timer = setTimeout(() => {
|
||||||
a = null;
|
a = null;
|
||||||
href = null;
|
href = null;
|
||||||
});
|
timer = null;
|
||||||
|
}, 500)
|
||||||
return 2;
|
return 2;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue