lrf402788946 4 лет назад
Родитель
Сommit
4a026312ca
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/views/student/index.vue

+ 4 - 1
src/views/student/index.vue

@@ -228,9 +228,12 @@ export default {
       }
     },
     async toExportExcel() {
-      console.log('in function:');
       let duplicate = _.cloneDeep(this.exportInfo);
       const res = await this.toExport(duplicate);
+      if (this.$checkRes(res)) {
+        const { data } = res;
+        window.open(data);
+      }
     },
     getTerm(termid) {
       console.log(termid);