Explorar o código

修改bug

修改bug
Sean hai 3 meses
pai
achega
672285eb65
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  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('加入群聊失败!')
       })