|
@@ -133,7 +133,8 @@ import {
|
|
|
CreateEnterLiveRoomSession,
|
|
|
JoinGroup_Teacher,
|
|
|
ExitCurGroup_Teacher,
|
|
|
- GetMyGroupInfo_Teacher
|
|
|
+ GetMyGroupInfo_Teacher,
|
|
|
+ GetGroupStatus
|
|
|
} from '@/api/live';
|
|
|
import * as common from './group';
|
|
|
|
|
@@ -209,6 +210,19 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ GetGroupStatus({ task_id: this.task_id }).then(({ is_teacher_in_group }) => {
|
|
|
+ if (is_teacher_in_group === 'true') {
|
|
|
+ GetMyGroupInfo_Teacher({
|
|
|
+ task_id: this.task_id
|
|
|
+ }).then(({ room_id, teacher: { session_id }, student_list }) => {
|
|
|
+ this.room_id = room_id;
|
|
|
+ this.session_id = session_id;
|
|
|
+ this.student_list = student_list;
|
|
|
+ common.downloadWebSDK(this);
|
|
|
+ this.isGroup = true;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
this.getLiveRoomInfo();
|
|
|
GetGroupInfo_Teacher({ task_id: this.task_id }).then(
|
|
|
({ live_room_sys_user_id, group_list }) => {
|