Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
gzydong committed Jul 23, 2021
1 parent f56f57a commit fd2f504
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/notify/NewMessageNotify.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<!-- 新消息提示组件 -->
<div class="notify-box">
<div class="notify-box pointer">
<div class="lbox">
<el-avatar size="medium" shape="square" :src="avatar" />
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/im-server/event/talk.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ class Talk extends Base {
if (talk_type == 2) {
avatar = this.resource.group_avatar
nickname += `【 ${this.resource.group_name} 】`
} else {
receiver_id = this.sender_id
}

this.$notify({
Expand Down

0 comments on commit fd2f504

Please sign in to comment.