diff --git a/Cunkebao/src/components/AccountSelection/selectionPopup.tsx b/Cunkebao/src/components/AccountSelection/selectionPopup.tsx index f6d012a5..a40bd6ea 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 eaa38692..6f52b501 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 c7237b17..69cecf76 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 1e59529c..eb0ccf76 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 d74c5219..e9d82452 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]);