fix(proxy): preserve chain selection on disconnect (#8316)

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
This commit is contained in:
VioletSuki
2026-11-14 11:48:52 +00:00
committed by GitHub
co-authored by ❤是纱雾酱哟~
parent a0ce1cdadf
commit ca1e55d64e
2 changed files with 1 additions and 4 deletions
-4
View File
@@ -463,15 +463,12 @@ export const ProxyChain = ({
localStorage.removeItem('proxy-chain-group')
localStorage.removeItem('proxy-chain-exit-node')
localStorage.removeItem('proxy-chain-items')
await mutate(() => closeAllConnections(), {
id: 'close-all-connections',
errorNotice: false,
})
await refreshProxy()
onUpdateChain([])
} catch (error) {
console.error('Failed to disconnect from proxy chain:', error)
alert(t('proxies.page.chain.disconnectFailed'))
@@ -550,7 +547,6 @@ export const ProxyChain = ({
mode,
proxyView,
selectedGroup,
onUpdateChain,
recordSelection,
])