mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 05:51:56 +08:00
Fix: update selected proxy for global mode (#70)
This commit is contained in:
parent
34d6c6d35c
commit
47be9c2469
@ -194,6 +194,9 @@ export function useProxy () {
|
||||
|
||||
const markProxySelected = useCallback((name: string, selected: string) => {
|
||||
set(draft => {
|
||||
if (name === 'GLOBAL') {
|
||||
draft.global.now = selected
|
||||
}
|
||||
for (const group of draft.groups) {
|
||||
if (group.name === name) {
|
||||
group.now = selected
|
||||
|
Loading…
x
Reference in New Issue
Block a user