下载问题修复
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-17 19:16:42 +08:00
parent bebd4c4aa0
commit d7fcd79cb2
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -6,6 +6,9 @@ import {
requestPackageAndAnonymizImage,
} from "@/api/load.js";
let flag = {};
export const resetFlag = () => {
flag = {}
}
export const downloadImage = async (id, id2, IsDicom = true) => {
if (flag[`${id2}_${IsDicom}`]) return Vue.prototype.$message.warning(Vue.prototype.$t('trials:upload:tip:uploading'));
flag[`${id2}_${IsDicom}`] = true
@@ -18,6 +21,7 @@ export const downloadImage = async (id, id2, IsDicom = true) => {
let res = await requestPackageAndAnonymizImage(params);
if (res.IsSuccess) {
if (!res.Result) {
flag[`${res.id2}_${res.IsDicom}`] = false;
Vue.prototype.$message.warning(Vue.prototype.$t("trials:upload:message:not"))
return 1;
}