diff --git a/nkebao/src/components/FriendSelection/index.tsx b/nkebao/src/components/FriendSelection/index.tsx index 0cf9e06f..8048e8b6 100644 --- a/nkebao/src/components/FriendSelection/index.tsx +++ b/nkebao/src/components/FriendSelection/index.tsx @@ -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) => { diff --git a/nkebao/src/pages/workspace/auto-like/list/index.tsx b/nkebao/src/pages/workspace/auto-like/list/index.tsx index e70fc26a..d9598828 100644 --- a/nkebao/src/pages/workspace/auto-like/list/index.tsx +++ b/nkebao/src/pages/workspace/auto-like/list/index.tsx @@ -1,6 +1,7 @@ import React, { useState, useEffect, useRef } from "react"; import { useNavigate } from "react-router-dom"; -import { NavBar, Button, Toast, SpinLoading, Dialog, Card } from "antd-mobile"; +import { Button, Toast, SpinLoading, Dialog, Card } from "antd-mobile"; +import NavCommon from "@/components/NavCommon"; import { Input } from "antd"; import { PlusOutlined, @@ -230,25 +231,15 @@ const AutoLike: React.FC = () => { - - navigate(-1)} - /> - - } + navigate("/workspace")} right={ } - > - 自动点赞 - + /> {/* 搜索栏 */}
diff --git a/nkebao/src/router/module/workspace.tsx b/nkebao/src/router/module/workspace.tsx index 85282d91..ee4ca0c5 100644 --- a/nkebao/src/router/module/workspace.tsx +++ b/nkebao/src/router/module/workspace.tsx @@ -40,7 +40,7 @@ const workspaceRoutes = [ auth: true, }, { - path: "/workspace/auto-like/:id/edit", + path: "/workspace/auto-like/edit/:id", element: , auth: true, },