diff --git a/Cunkebao/src/components/AccountSelection/selectionPopup.tsx b/Cunkebao/src/components/AccountSelection/selectionPopup.tsx index f6d012a5d..a40bd6ea4 100644 --- a/Cunkebao/src/components/AccountSelection/selectionPopup.tsx +++ b/Cunkebao/src/components/AccountSelection/selectionPopup.tsx @@ -103,7 +103,7 @@ export default function SelectionPopup({ // 页码变化 useEffect(() => { - if (!visible || currentPage === 1) return; + if (!visible) return; fetchAccounts(currentPage, searchQuery); }, [currentPage, visible, searchQuery]); diff --git a/Cunkebao/src/components/FriendSelection/selectionPopup.tsx b/Cunkebao/src/components/FriendSelection/selectionPopup.tsx index eaa386920..6f52b5015 100644 --- a/Cunkebao/src/components/FriendSelection/selectionPopup.tsx +++ b/Cunkebao/src/components/FriendSelection/selectionPopup.tsx @@ -123,7 +123,7 @@ const SelectionPopup: React.FC = ({ // 页码变化时请求数据(只在弹窗打开且页码不是1时执行) useEffect(() => { - if (!visible || currentPage === 1) return; // 弹窗关闭或第一页时不请求 + if (!visible) return; // 弹窗关闭或第一页时不请求 fetchFriends(currentPage, searchQuery); }, [currentPage, visible, searchQuery]); diff --git a/Cunkebao/src/components/GroupSelection/selectionPopup.tsx b/Cunkebao/src/components/GroupSelection/selectionPopup.tsx index c7237b172..69cecf764 100644 --- a/Cunkebao/src/components/GroupSelection/selectionPopup.tsx +++ b/Cunkebao/src/components/GroupSelection/selectionPopup.tsx @@ -135,7 +135,7 @@ export default function SelectionPopup({ // 页码变化时请求数据(只在弹窗打开且页码不是1时执行) useEffect(() => { - if (!visible || currentPage === 1) return; + if (!visible) return; fetchGroups(currentPage, searchQuery); }, [currentPage, visible, searchQuery]); diff --git a/Cunkebao/src/components/PoolSelection/selectionPopup.tsx b/Cunkebao/src/components/PoolSelection/selectionPopup.tsx index 1e59529ce..eb0ccf761 100644 --- a/Cunkebao/src/components/PoolSelection/selectionPopup.tsx +++ b/Cunkebao/src/components/PoolSelection/selectionPopup.tsx @@ -134,7 +134,7 @@ export default function SelectionPopup({ // 页码变化时请求数据(只在弹窗打开且页码不是1时执行) useEffect(() => { - if (!visible || currentPage === 1) return; + if (!visible) return; fetchPoolPackages(currentPage, searchQuery); }, [currentPage, visible, searchQuery]); diff --git a/Cunkebao/src/pages/mobile/workspace/traffic-distribution/list/components/SendRcrodModal.tsx b/Cunkebao/src/pages/mobile/workspace/traffic-distribution/list/components/SendRcrodModal.tsx index d74c52191..e9d824522 100644 --- a/Cunkebao/src/pages/mobile/workspace/traffic-distribution/list/components/SendRcrodModal.tsx +++ b/Cunkebao/src/pages/mobile/workspace/traffic-distribution/list/components/SendRcrodModal.tsx @@ -81,7 +81,7 @@ const SendRcrodModal: React.FC = ({ // 页码变化 useEffect(() => { - if (!visible || !ruleId || currentPage === 1) return; + if (!visible || !ruleId) return; fetchSendRecords(currentPage, searchKeyword); }, [currentPage]);