dusenyao 3 年之前
父節點
當前提交
f84cdb27a8
共有 1 個文件被更改,包括 9 次插入5 次删除
  1. 9 5
      src/views/live/student/index.vue

+ 9 - 5
src/views/live/student/index.vue

@@ -291,11 +291,15 @@ export default {
 
         CreateEnterLiveRoomSession({
           task_id: this.task_id
-        }).then(({ connection_status, connection_mode }) => {
-          common.downloadWebSDK(this);
-          this.connection_status = connection_status;
-          this.connection_mode = connection_mode;
-        });
+        })
+          .then(({ connection_status, connection_mode }) => {
+            common.downloadWebSDK(this);
+            this.connection_status = connection_status;
+            this.connection_mode = connection_mode;
+          })
+          .catch(() => {
+            this.$loading().close();
+          });
       }
     });
   },