mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 07:24:10 +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…
x
Reference in New Issue
Block a user