Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
af753de4
Commit
af753de4
authored
Jan 06, 2026
by
shaw
Browse files
fix: 修复账号修改代理更新无效的bug
parent
3956819c
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/account/BulkEditAccountModal.vue
View file @
af753de4
...
@@ -831,7 +831,8 @@ const buildUpdatePayload = (): Record<string, unknown> | null => {
...
@@ -831,7 +831,8 @@ const buildUpdatePayload = (): Record<string, unknown> | null => {
let
credentialsChanged
=
false
let
credentialsChanged
=
false
if
(
enableProxy
.
value
)
{
if
(
enableProxy
.
value
)
{
updates
.
proxy_id
=
proxyId
.
value
// 后端期望 proxy_id: 0 表示清除代理,而不是 null
updates
.
proxy_id
=
proxyId
.
value
===
null
?
0
:
proxyId
.
value
}
}
if
(
enableConcurrency
.
value
)
{
if
(
enableConcurrency
.
value
)
{
...
...
frontend/src/components/account/EditAccountModal.vue
View file @
af753de4
...
@@ -1053,6 +1053,10 @@ const handleSubmit = async () => {
...
@@ -1053,6 +1053,10 @@ const handleSubmit = async () => {
submitting
.
value
=
true
submitting
.
value
=
true
try
{
try
{
const
updatePayload
:
Record
<
string
,
unknown
>
=
{
...
form
}
const
updatePayload
:
Record
<
string
,
unknown
>
=
{
...
form
}
// 后端期望 proxy_id: 0 表示清除代理,而不是 null
if
(
updatePayload
.
proxy_id
===
null
)
{
updatePayload
.
proxy_id
=
0
}
// For apikey type, handle credentials update
// For apikey type, handle credentials update
if
(
props
.
account
.
type
===
'
apikey
'
)
{
if
(
props
.
account
.
type
===
'
apikey
'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment