zhangjie 2 лет назад
Родитель
Сommit
38bd766d6e
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/modules/exam/views/DataTaskManage.vue

+ 1 - 2
src/modules/exam/views/DataTaskManage.vue

@@ -286,10 +286,9 @@ export default {
       if (this.loading) return;
 
       this.loading = true;
-      const type = row.hasResultFile ? "RESULT" : "IMPORT_FILE";
       const res = await attachmentDownload({
         id: row.id,
-        type
+        type: row.downloadType
       }).catch(() => {});
       this.loading = false;