diff --git a/src/components/friends/FriendListItem.vue b/src/components/friends/FriendListItem.vue index 1c3cbef..be9a99c 100644 --- a/src/components/friends/FriendListItem.vue +++ b/src/components/friends/FriendListItem.vue @@ -42,7 +42,8 @@ const props = defineProps<{ item: any }>() const emits = defineEmits(["approve", "decline"]) const canApprove = computed(() => { - return props.item.status !== 1 && props.item.account_id !== id.userinfo.data?.id + return props.item.status !== 1 && + (props.item.status !== 0 && props.item.related_id !== id.userinfo.data?.id) }) const canDecline = computed(() => { return props.item.status !== 2