fix(pagination): 统一表格分页与密钥查询交互

统一各中心表格的分页样式与切换行为,保留密钥筛选条件和兑换码搜索分页。

验证:871 项单测、ESLint、Prettier 和本地浏览器验收通过。
This commit is contained in:
zhanjunhao
2026-11-20 12:52:45 +08:00
parent b7755187e3
commit ccde35d22e
32 changed files with 416 additions and 401 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ export const useTokensData = (openFluentNotification) => {
const [loading, setLoading] = useState(true);
const [activePage, setActivePage] = useState(1);
const [tokenCount, setTokenCount] = useState(0);
const [pageSize, setPageSize] = useState(5);
const [pageSize, setPageSize] = useState(10);
const [searching, setSearching] = useState(false);
// Selection state
@@ -319,7 +319,7 @@ export const useTokensData = (openFluentNotification) => {
showError(reason);
});
});
useEffect(() => onScopeChange(), [onScopeChange, pageSize]);
useEffect(() => onScopeChange(), [onScopeChange]);
return {
// Basic state