mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +08:00
fix proxies order
This commit is contained in:
parent
75d064f4e1
commit
b18dbbf770
@ -37,7 +37,7 @@ const Proxies: React.FC = () => {
|
|||||||
const allProxies: (IMihomoProxy | IMihomoGroup)[] = []
|
const allProxies: (IMihomoProxy | IMihomoGroup)[] = []
|
||||||
groups.forEach((group, index) => {
|
groups.forEach((group, index) => {
|
||||||
if (isOpen[index]) {
|
if (isOpen[index]) {
|
||||||
let groupProxies = group.all
|
let groupProxies = [...group.all]
|
||||||
if (proxyDisplayOrder === 'delay') {
|
if (proxyDisplayOrder === 'delay') {
|
||||||
groupProxies = groupProxies.sort((a, b) => {
|
groupProxies = groupProxies.sort((a, b) => {
|
||||||
if (a.history.length === 0) return -1
|
if (a.history.length === 0) return -1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user