缓存聊天记录

This commit is contained in:
cxc
2022-06-09 10:44:12 +08:00
parent d98beeca62
commit aed3fee7a6
3 changed files with 12 additions and 0 deletions

View File

@ -79,6 +79,7 @@ router.beforeEach(async (to) => {
// 如果要去的页面会议号于 vuex中的不一样则清除数据
if (to.params.meetingId !== store.state.joinUser.meetingId) {
store.commit("setJoinUser", {});
store.commit("setMessagesList", []);
}
// 如果参会方式发生更改,则清除数据
if (
@ -147,6 +148,7 @@ router.beforeEach(async (to) => {
// 如果要去的页面会议号于 vuex中的不一样则清除数据
if (to.params.meetingId !== store.state.joinUser.meetingId) {
store.commit("setJoinUser", {});
store.commit("setMessagesList", []);
}
if (store.state.joinUser.icCard) {
try {