Browse Source

代码规范

master
xie.bx 3 years ago
parent
commit
035a95cb5e
  1. 2
      im-platform/src/main/java/com/bx/implatform/service/impl/GroupServiceImpl.java
  2. 2
      im-ui/src/view/Group.vue

2
im-platform/src/main/java/com/bx/implatform/service/impl/GroupServiceImpl.java

@ -135,6 +135,8 @@ public class GroupServiceImpl extends ServiceImpl<GroupMapper, Group> implements
// 逻辑删除群数据
group.setDeleted(true);
this.updateById(group);
// 删除成员数据
groupMemberService.removeByGroupId(groupId);
log.info("删除群聊,群聊id:{},群聊名称:{}",group.getId(),group.getName());
}

2
im-ui/src/view/Group.vue

@ -168,9 +168,11 @@
url: `/group/delete/${this.activeGroup.id}`,
method: 'delete'
}).then(() => {
this.$message.success(`群聊'${this.activeGroup.name}'已解散`);
this.$store.commit("removeGroup", this.activeGroup.id);
this.$store.commit("activeGroup", -1);
this.$store.commit("removeGroupChat", this.activeGroup.id);
this.activeGroup= {};
});
})

Loading…
Cancel
Save