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
+1
View File
@@ -30,6 +30,7 @@
- 修复订阅中未加引号的 REALITY `short-id`(如 `1234e123`)被误读为数字,导致订阅无法启用
- 修复订阅中唯一的代理组名为 `GLOBAL` 或没有代理组时,规则模式下代理页面显示「未获取到代理信息」
- 修复窗口较窄时,首页「当前节点」卡片中过长的节点名把延迟标签挤出卡片
- 修复断开链式代理时清空已选节点,导致再次连接需要重新选择的问题
**🍎 macOS**
-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,
])