mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01: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) => {
|
const markProxySelected = useCallback((name: string, selected: string) => {
|
||||||
set(draft => {
|
set(draft => {
|
||||||
|
if (name === 'GLOBAL') {
|
||||||
|
draft.global.now = selected
|
||||||
|
}
|
||||||
for (const group of draft.groups) {
|
for (const group of draft.groups) {
|
||||||
if (group.name === name) {
|
if (group.name === name) {
|
||||||
group.now = selected
|
group.now = selected
|
||||||
|
Loading…
x
Reference in New Issue
Block a user