瀏覽代碼

修改bug

修改bug
Sean 4 月之前
父節點
當前提交
672285eb65
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/views/chat/hall.vue

+ 6 - 2
src/views/chat/hall.vue

@@ -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('加入群聊失败!')
       })