zhangjie 3 жил өмнө
parent
commit
c569ad57bf

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