fix: 修复默认主题 API 密钥分组行为

Signed-off-by: Micah-Zheng <102610064+Micah-Zheng@users.noreply.github.com>
This commit is contained in:
Micah-Zheng
2026-04-30 03:09:32 +08:00
parent b2232f4355
commit 2f8637048e
5 changed files with 25 additions and 6 deletions
+10
View File
@@ -37,6 +37,16 @@ export const API_KEY_FORM_DEFAULT_VALUES: ApiKeyFormValues = {
tokenCount: 1,
}
export function getApiKeyFormDefaultValues(
defaultUseAutoGroup: boolean
): ApiKeyFormValues {
return {
...API_KEY_FORM_DEFAULT_VALUES,
group: defaultUseAutoGroup ? 'auto' : DEFAULT_GROUP,
cross_group_retry: defaultUseAutoGroup,
}
}
// ============================================================================
// Form Data Transformation
// ============================================================================