chore: set global to last proxies

This commit is contained in:
Zephyruso 2023-09-01 10:45:38 +08:00
parent 80d5138423
commit 4af482a603

View File

@ -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)