zhangjie il y a 3 ans
Parent
commit
c569ad57bf
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      src/modules/exam/views/DataTaskManage.vue

+ 5 - 0
src/modules/exam/views/DataTaskManage.vue

@@ -241,6 +241,11 @@ export default {
       }
 
       const url = res.url;
+      if (url.endsWith(".txt")) {
+        this.loading = false;
+        window.open(url);
+        return;
+      }
       let result = true;
       await downloadFileURL(url).catch(() => {
         result = false;