|
@@ -2048,8 +2048,12 @@ export default {
|
|
|
//2.4.2 加入群聊
|
|
|
joinGroup(){
|
|
|
this.$store.dispatch('chat/joinGroup',{group_id:this.groupInviteInfo.group_id}).then(res=> {
|
|
|
- this.$message.success('加入群聊成功!')
|
|
|
- this.addGroupWindow = false;
|
|
|
+ if(res.code=='200'){
|
|
|
+ this.$message.success('加入群聊成功!')
|
|
|
+ this.addGroupWindow = false;
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message)
|
|
|
+ }
|
|
|
}).catch(() => {
|
|
|
this.$message.error('加入群聊失败!')
|
|
|
})
|