feat: default upstream balance config for new upstream form

defaultForm() now uses sub2api presets for balance fields:
- balance_endpoint: /auth/me
- balance_response_path: data.balance
- balance_divisor: 1.0

Platform presets in handlePlatformChange() remain unchanged.
This commit is contained in:
liumangmang
2026-06-01 11:09:31 +08:00
parent 92eb4888d1
commit 3408795289
+2 -2
View File
@@ -419,8 +419,8 @@ const defaultForm = () => ({
enabled: true,
check_interval_seconds: 600,
timeout_seconds: 30,
balance_endpoint: '',
balance_response_path: '',
balance_endpoint: '/auth/me',
balance_response_path: 'data.balance',
balance_divisor: 1.0,
balance_alert_threshold: null as number | null,
})