Skip to content

Commit

Permalink
fix: Update the reference name of the proxy group.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayideyia committed Oct 31, 2024
1 parent 0f3578b commit 4b56f7c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ const handleAddEnd = () => {
const idx = proxyGroup.value[0].proxies.findIndex((v) => v.id === id)
if (idx !== -1) {
proxyGroup.value[0].proxies.splice(idx, 1, { id, name, type })
groups.value.forEach((group) => {
const proxy = group.proxies.find((proxy) => proxy.id === id)
proxy && (proxy.name = name)
})
}
}
Expand Down

0 comments on commit 4b56f7c

Please sign in to comment.