lsc 2 years ago
parent
commit
e6e74fe882
2 changed files with 4 additions and 0 deletions
  1. 2 0
      src/components/student/studyStudent.vue
  2. 2 0
      src/components/studyStudent.vue

+ 2 - 0
src/components/student/studyStudent.vue

@@ -2356,8 +2356,10 @@ export default {
       const x = new XMLHttpRequest();
       x.open("GET", _url, true);
       x.responseType = "blob";
+      const loading = this.openLoading();
       _this.$message.success("文件下载中...")
       x.onload = function (e) {
+        loading.close();
         // const url = window.URL.createObjectURL(x.response);
         // const a = document.createElement("a");
         // a.href = url;

+ 2 - 0
src/components/studyStudent.vue

@@ -8511,8 +8511,10 @@ export default {
       const x = new XMLHttpRequest();
       x.open("GET", _url, true);
       x.responseType = "blob";
+      const loading = this.openLoading();
       _this.$message.success("文件下载中...")
       x.onload = function (e) {
+        loading.close();
         // const url = window.URL.createObjectURL(x.response);
         // const a = document.createElement("a");
         // a.href = url;