主持人富文本、leave meeting after close the browser

This commit is contained in:
cxc
2022-06-10 14:26:07 +08:00
parent 39975bd3b6
commit 9cfd6df649
4 changed files with 62 additions and 19 deletions

View File

@ -64,8 +64,9 @@ router.beforeEach(async (to) => {
// 前往主持人页面
if (to.name === "Host") {
console.log("host");
// const bytes = cryptoJs.AES.decrypt(to.params.hostinfo, "secret");
// const decryptedData = JSON.parse(bytes.toString(cryptoJs.enc.Utf8));
if (to.params.meetingId !== store.state.joinUser.meetingId) {
store.commit("setMessagesList", []);
}
store.commit("setJoinUser", {
nickname: to.params.nickname,
username: to.params.username,