Skip to content

Commit

Permalink
fix: 修复未读消息连续赋值bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Dec 25, 2020
1 parent 970a65c commit 9c0916f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/store/modules/chat/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const mutations: MutationTree<ChatState> = {

// 给某个聊天组添加未读消息
[ADD_UNREAD_GATHER](state, payload: string) {
document.title = `【有未读消息】${document.title}`;
document.title = '【有未读消息】TylooChat聊天室';
if (!state.unReadGather[payload]) {
Vue.set(state.unReadGather, payload, 1);
} else {
Expand Down

0 comments on commit 9c0916f

Please sign in to comment.