diff --git a/src/components/GroupFriendsList.vue b/src/components/GroupFriendsList.vue index e0c60d8..16b7fc6 100644 --- a/src/components/GroupFriendsList.vue +++ b/src/components/GroupFriendsList.vue @@ -13,9 +13,10 @@ @@ -61,7 +62,11 @@ import {loadUserFriendsPage,createGroup} from '../api/commonApi' }, handleAccept(index, row) { const that = this; - that.invitedUserIds.push(row.userId) + if(that.invitedUserIds.indexOf(row.userId)==-1){ + that.invitedUserIds.push(row.userId) + }else { + that.$message.error("以选择该好友,请勿重复选择") + } }, close(){ this.$emit('friendsDialogHide');