mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 13:10:30 +08:00
allow hidden for GLOBAL group
This commit is contained in:
parent
3449287e46
commit
2b1846d72c
@ -94,8 +94,10 @@ export const mihomoGroups = async (): Promise<IMihomoMixedGroup[]> => {
|
|||||||
})
|
})
|
||||||
if (!groups.find((group) => group.name === 'GLOBAL')) {
|
if (!groups.find((group) => group.name === 'GLOBAL')) {
|
||||||
const newGlobal = proxies.proxies['GLOBAL'] as IMihomoGroup
|
const newGlobal = proxies.proxies['GLOBAL'] as IMihomoGroup
|
||||||
const newAll = newGlobal.all.map((name) => proxies.proxies[name])
|
if (!newGlobal.hidden) {
|
||||||
groups.push({ ...newGlobal, all: newAll })
|
const newAll = newGlobal.all.map((name) => proxies.proxies[name])
|
||||||
|
groups.push({ ...newGlobal, all: newAll })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return groups
|
return groups
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user