feat: 本次提交更新内容如下

初级语法告警
This commit is contained in:
笔记本里的永平
2025-07-08 10:22:34 +08:00
parent 577381bc34
commit 567c0ad548
12 changed files with 47 additions and 49 deletions

View File

@@ -92,7 +92,7 @@ export default function WechatAccountDetail() {
const [friendDetailError, setFriendDetailError] = useState<string | null>(null);
const [searchQuery, setSearchQuery] = useState("");
const [activeTab, setActiveTab] = useState("overview");
const [isLoading, setIsLoading] = useState(false);
const [, setIsLoading] = useState(false);
// 好友列表相关状态
const [friends, setFriends] = useState<Friend[]>([]);
@@ -234,7 +234,7 @@ export default function WechatAccountDetail() {
console.log('Setting isFetchingFriends to false');
setIsFetchingFriends(false);
}
}, [id, searchQuery, toast]);
}, [id, searchQuery, toast, isFetchingFriends]);
// 初始化数据
useEffect(() => {
@@ -333,10 +333,10 @@ export default function WechatAccountDetail() {
navigate("/scenarios");
};
const handleBack = () => {
clearCurrentAccount();
navigate('/wechat-accounts');
};
// const handleBack = () => {
// clearCurrentAccount();
// navigate('/wechat-accounts');
// };
const handleFriendClick = async (friend: Friend) => {
setSelectedFriend(friend);