dusenyao 3 lat temu
rodzic
commit
f84cdb27a8
1 zmienionych plików z 9 dodań i 5 usunięć
  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();
+          });
       }
     });
   },