mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
chore: set global to last proxies
This commit is contained in:
parent
80d5138423
commit
4af482a603
@ -38,7 +38,7 @@ export function useProxies() {
|
||||
const { proxies } = await request
|
||||
.get('proxies')
|
||||
.json<{ proxies: Record<string, Proxy> }>()
|
||||
const sortIndex = proxies['GLOBAL'].all ?? []
|
||||
const sortIndex = [...(proxies['GLOBAL'].all ?? []), 'GLOBAL']
|
||||
|
||||
setProxies(
|
||||
Object.values(proxies)
|
||||
|
Loading…
Reference in New Issue
Block a user