diff --git a/src/components/api-server/ApiServerPage.tsx b/src/components/api-server/ApiServerPage.tsx index 501b3507c..631bf7f72 100644 --- a/src/components/api-server/ApiServerPage.tsx +++ b/src/components/api-server/ApiServerPage.tsx @@ -188,6 +188,9 @@ export function ApiServerPage() { useEffect(() => { loadPoolOverview(); + // 定时刷新凭证池数据,以便使用次数能够更新 + const poolInterval = setInterval(loadPoolOverview, 5000); + return () => clearInterval(poolInterval); }, []); // 自动清除 provider 切换提示 @@ -627,22 +630,12 @@ export function ApiServerPage() { {credentials.map((cred) => (
{cred.name || cred.uuid.slice(0, 8)}