feat: 本次提交更新内容如下
自动点赞功能完成
This commit is contained in:
@@ -150,9 +150,18 @@ export default function FriendSelection({
|
||||
};
|
||||
|
||||
// 获取已选好友详细信息
|
||||
const selectedFriendObjs = friends.filter((friend) =>
|
||||
selectedFriends.includes(friend.id)
|
||||
);
|
||||
const selectedFriendObjs = [
|
||||
...friends.filter((friend) => selectedFriends.includes(friend.id)),
|
||||
...selectedFriends
|
||||
.filter((id) => !friends.some((friend) => friend.id === id))
|
||||
.map((id) => ({
|
||||
id,
|
||||
nickname: id,
|
||||
wechatId: id,
|
||||
avatar: "",
|
||||
customer: "",
|
||||
})),
|
||||
];
|
||||
|
||||
// 删除已选好友
|
||||
const handleRemoveFriend = (id: string) => {
|
||||
|
||||
Reference in New Issue
Block a user