mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
fix: 修复账号修改代理更新无效的bug
This commit is contained in:
1 parent
3956819c78
commit
af753de481
2 files changed
+6
-1
No files matched your search
@@ -831,7 +831,8 @@ const buildUpdatePayload = (): Record<string, unknown> | null => {
|
||||
let credentialsChanged = false
|
||||
|
||||
if (enableProxy.value) {
|
||||
updates.proxy_id = proxyId.value
|
||||
// 后端期望 proxy_id: 0 表示清除代理,而不是 null
|
||||
updates.proxy_id = proxyId.value === null ? 0 : proxyId.value
|
||||
}
|
||||
|
||||
if (enableConcurrency.value) {
|
||||
|
||||
Reference in new issue
Block a user