From 79cd1129fd895d2fa3d226e21dcb81b8a0106886 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 6 Apr 2024 03:10:58 +0800 Subject: [PATCH] :bug: Fix wrong can approve detection --- src/components/friends/FriendListItem.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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