|
@@ -133,7 +133,7 @@ import {
|
|
|
StudentExitLiveRoom,
|
|
|
GetCurMaterialSent,
|
|
|
GetLiveRoomInfo,
|
|
|
- IsEnableGroup,
|
|
|
+ GetGroupStatus,
|
|
|
GetMyGroupInfo_Student
|
|
|
} from '@/api/live';
|
|
|
import CurMaterial from '@/components/live/CurMaterial.vue';
|
|
@@ -238,7 +238,7 @@ export default {
|
|
|
mounted() {
|
|
|
this.getCurMaterialSent();
|
|
|
this.getLiveRoomStudentListPolling();
|
|
|
- this.isEnableGroup();
|
|
|
+ this.GetGroupStatus();
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
// 清除所有定时器
|
|
@@ -351,9 +351,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 分组讨论
|
|
|
- isEnableGroup() {
|
|
|
+ GetGroupStatus() {
|
|
|
this.timer_group = setInterval(() => {
|
|
|
- IsEnableGroup({ task_id: this.task_id })
|
|
|
+ GetGroupStatus({ task_id: this.task_id })
|
|
|
.then(({ is_enable_group }) => {
|
|
|
if (is_enable_group === 'true') {
|
|
|
clearInterval(this.timer_group);
|