From 3408795289afbbb5c3d6cca0d3cb4134fd2da1cd Mon Sep 17 00:00:00 2001 From: liumangmang Date: Mon, 1 Jun 2026 11:09:31 +0800 Subject: [PATCH] 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. --- frontend/src/views/Upstreams.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Upstreams.vue b/frontend/src/views/Upstreams.vue index d8188df..6ac0127 100644 --- a/frontend/src/views/Upstreams.vue +++ b/frontend/src/views/Upstreams.vue @@ -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, })