dusenyao 3 years ago
parent
commit
017462c873
2 changed files with 13 additions and 9 deletions
  1. 1 0
      src/utils/validate.js
  2. 12 9
      src/views/live/teacher/index.vue

+ 1 - 0
src/utils/validate.js

@@ -39,6 +39,7 @@ export function isAllowFileType(fileName) {
     'ppt',
     'pptx',
     'xls',
+    'xlsx',
     'jpg',
     'gif',
     'png',

+ 12 - 9
src/views/live/teacher/index.vue

@@ -752,16 +752,19 @@ export default {
         text: '正在进行分组,请等待...'
       });
       // 开始分组讨论
-      StartGroup({ task_id: this.task_id, group_count: this.group_count }).then(() => {
-        loading.close();
-        this.$message.success('开启分组讨论成功');
-        this.$router.push({
-          path: '/live/teacher/group',
-          query: {
-            task_id: this.task_id
-          }
+      StartGroup({ task_id: this.task_id, group_count: this.group_count })
+        .then(() => {
+          this.$message.success('开启分组讨论成功');
+          this.$router.push({
+            path: '/live/teacher/group',
+            query: {
+              task_id: this.task_id
+            }
+          });
+        })
+        .finally(() => {
+          loading.close();
         });
-      });
     },
 
     closeGroup() {