fix: sort proxy during loading, close #221

This commit is contained in:
GyDi 2022-10-11 22:06:55 +08:00
parent 2d0989342f
commit b8a8190a43
No known key found for this signature in database
GPG Key ID: 58B15242BA8277A6

View File

@ -23,8 +23,8 @@ export default function useSortProxy(
const ad = delayManager.getDelay(a.name, groupName);
const bd = delayManager.getDelay(b.name, groupName);
if (ad === -1) return 1;
if (bd === -1) return -1;
if (ad === -1 || ad === -2) return 1;
if (bd === -1 || bd === -2) return -1;
return ad - bd;
});