feat:rock增加手动刷新Token按钮

This commit is contained in:
2026-11-03 12:37:05 +08:00
parent f69cdc6d8e
commit d6530b47f4
7 changed files with 166 additions and 16 deletions
@@ -36,6 +36,8 @@ export interface RockStrategyCardProps {
lastTokenError?: string
testingLogin: boolean
onTestLogin: () => void
refreshingToken: boolean
onRefreshToken: () => void
togglingAutoPurchase: boolean
testingConn: boolean
savingConfig: boolean
@@ -56,6 +58,8 @@ export function RockStrategyCard({
lastTokenError,
testingLogin,
onTestLogin,
refreshingToken,
onRefreshToken,
togglingAutoPurchase,
testingConn,
savingConfig,
@@ -245,6 +249,9 @@ export function RockStrategyCard({
<Button size="small" onClick={onTestLogin} loading={testingLogin}>
测试登录
</Button>
<Button size="small" onClick={onRefreshToken} loading={refreshingToken}>
刷新 Token
</Button>
{lastTokenError ? (
<Text type="danger" style={{ fontSize: 12 }}>
Token 刷新失败:{lastTokenError}