|
@@ -97,7 +97,8 @@ import {
|
|
|
StudentExitLiveRoom,
|
|
|
GetLiveRoomInfo,
|
|
|
IsEnableGroup,
|
|
|
- GetMyGroupInfo_Student
|
|
|
+ GetMyGroupInfo_Student,
|
|
|
+ CreateEnterLiveRoomSession
|
|
|
} from '@/api/live';
|
|
|
import * as common from './group';
|
|
|
|
|
@@ -251,18 +252,19 @@ export default {
|
|
|
.then(({ is_enable_group }) => {
|
|
|
if (is_enable_group === 'false') {
|
|
|
clearInterval(this.timer);
|
|
|
- const {
|
|
|
- room_info: { live_room_sys_user_id, room_id, session_id, room_user_id }
|
|
|
- } = this.$route.query;
|
|
|
- this.$router.push({
|
|
|
- path: '/live/student',
|
|
|
- query: {
|
|
|
- live_room_sys_user_id,
|
|
|
- room_id,
|
|
|
- session_id,
|
|
|
- task_id: this.task_id,
|
|
|
- room_user_id
|
|
|
- }
|
|
|
+ CreateEnterLiveRoomSession({
|
|
|
+ task_id: this.task_id
|
|
|
+ }).then(({ live_room_sys_user_id, room_id, session_id, room_user_id }) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: `/live/student`,
|
|
|
+ query: {
|
|
|
+ live_room_sys_user_id,
|
|
|
+ room_id,
|
|
|
+ session_id,
|
|
|
+ task_id: this.task_id,
|
|
|
+ room_user_id
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
})
|