dusenyao 3 years ago
parent
commit
d9afefec04
3 changed files with 4 additions and 3 deletions
  1. 1 0
      package-lock.json
  2. 2 2
      src/views/live/teacher/index.vue
  3. 1 1
      src/views/live/teacher/live.js

+ 1 - 0
package-lock.json

@@ -5,6 +5,7 @@
   "requires": true,
   "requires": true,
   "packages": {
   "packages": {
     "": {
     "": {
+      "name": "gcls_sys_learn_web",
       "version": "0.1.0",
       "version": "0.1.0",
       "dependencies": {
       "dependencies": {
         "awe-dnd": "^0.3.4",
         "awe-dnd": "^0.3.4",

+ 2 - 2
src/views/live/teacher/index.vue

@@ -727,8 +727,8 @@ export default {
       }, 5000);
       }, 5000);
     },
     },
 
 
-    studentExitLiveRoom(room_user_id) {
-      StudentExitLiveRoom({ task_id: this.task_id, room_user_id });
+    studentExitLiveRoom(room_user_id, is_exit_page = false) {
+      StudentExitLiveRoom({ task_id: this.task_id, room_user_id, is_exit_page });
     },
     },
 
 
     publishStream() {
     publishStream() {

+ 1 - 1
src/views/live/teacher/live.js

@@ -283,7 +283,7 @@ export function initListener(vue) {
   // 用户退出房间通知其他人员事件
   // 用户退出房间通知其他人员事件
   rtc.on('exit_room_user', function (data) {
   rtc.on('exit_room_user', function (data) {
     console.log('用户退出房间通知其他人员事件', data);
     console.log('用户退出房间通知其他人员事件', data);
-    vue.studentExitLiveRoom(data.id);
+    vue.studentExitLiveRoom(data.id, true);
   });
   });
 
 
   /**
   /**