瀏覽代碼

fix: proxy list error

GyDi 3 年之前
父節點
當前提交
73758ad1fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pages/proxies.tsx

+ 1 - 1
src/pages/proxies.tsx

@@ -33,7 +33,7 @@ const ProxyPage = () => {
   }, [proxiesData]);
 
   const modeList = ["rule", "global", "direct"];
-  const asGroup = curMode === "rule" || !groups.length;
+  const asGroup = curMode === "rule" && groups.length;
 
   // make sure that fetch the proxies successfully
   useEffect(() => {