mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
fix: 测试成功后立即刷新凭证池数据
- API 测试成功后立即调用 loadPoolOverview 刷新数据 - 使用次数能够即时更新显示
This commit is contained in:
@@ -311,6 +311,11 @@ export function ApiServerPage() {
|
||||
httpStatus: result.status,
|
||||
},
|
||||
}));
|
||||
|
||||
// 测试成功后立即刷新凭证池数据,更新使用次数
|
||||
if (result.success) {
|
||||
await loadPoolOverview();
|
||||
}
|
||||
} catch (e: unknown) {
|
||||
const errMsg = e instanceof Error ? e.message : String(e);
|
||||
setTestResults((prev) => ({
|
||||
|
||||
Reference in New Issue
Block a user