소스 검색

fix: sort proxy during loading, close #221

GyDi 2 년 전
부모
커밋
b8a8190a43
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/proxy/use-sort-proxy.ts

+ 2 - 2
src/components/proxy/use-sort-proxy.ts

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