fix:打开会议窗口更改

This commit is contained in:
weifashi 2023-07-07 16:54:50 +08:00
parent 829612e720
commit 155f42dd37
4 changed files with 32 additions and 13 deletions

View File

@ -298,7 +298,7 @@ export default {
} }
} }
// //
window.__onMeetingEvent = ({act,uuid}) => { window.__onMeetingEvent = ({act,uuid,channelID}) => {
switch (act) { switch (act) {
// //
case "getInfo": case "getInfo":
@ -322,13 +322,14 @@ export default {
break; break;
// //
case "success": case "success":
//
this.$store.dispatch("closeMeetingWindow","add") this.$store.dispatch("closeMeetingWindow","add")
break; break;
// //
case "invent": case "invent":
// this.$store.dispatch("showMeetingWindow",{
this.$store.dispatch("closeMeetingWindow","invitation") type: "invitation",
meetingid: channelID
})
break; break;
// //
case "endMeeting": case "endMeeting":

View File

@ -189,18 +189,19 @@ export default {
handler(val) { handler(val) {
switch (val.type) { switch (val.type) {
case 'add': case 'add':
this.addShow = val.show this.addShow = val.show;
this.loadIng = 0; this.loadIng = 0;
break; break;
case 'invitation': case 'invitation':
this.invitationShow = val.show this.invitationShow = val.show;
this.invitationLoad = 0; this.invitationLoad = false;
this.invitationData.meetingid = val.meetingid;
break; break;
case 'error': case 'error':
this.addShow = val.show this.addShow = val.show;
this.loadIng = 0; this.loadIng = 0;
this.invitationShow = val.show this.invitationShow = val.show;
this.invitationLoad = 0; this.invitationLoad = false;
$A.modalError('加入会议失败'); $A.modalError('加入会议失败');
break; break;
} }
@ -274,6 +275,7 @@ export default {
username: data.nickname, username: data.nickname,
video: this.addData.tracks.includes("video"), video: this.addData.tracks.includes("video"),
audio: this.addData.tracks.includes("audio"), audio: this.addData.tracks.includes("audio"),
channelID: data.meetingid,
} }
}); });
this.loadIng--; this.loadIng--;

View File

@ -3403,18 +3403,33 @@ export default {
/** *****************************************************************************************/ /** *****************************************************************************************/
/** *************************************** pgp *********************************************/ /** *************************************** meeting *********************************************/
/** *****************************************************************************************/ /** *****************************************************************************************/
/** /**
* 关闭会议窗口 * 关闭会议窗口
* @param state * @param state
* @param data * @param type
*/ */
closeMeetingWindow({state}, type) { closeMeetingWindow({state}, type) {
state.meetingWindow = { state.meetingWindow = {
show: false, show: false,
type: type type: type,
meetingid: 0
};
},
/**
* 显示会议窗口
* @param state
* @param type
* @param meetingid
*/
showMeetingWindow({state}, {type, meetingid}) {
state.meetingWindow = {
show: true,
type: type,
meetingid: meetingid
}; };
}, },
} }

View File

@ -199,5 +199,6 @@ export default {
meetingWindow: { meetingWindow: {
show: false, show: false,
type: "", type: "",
meetingid: 0
} }
}; };