From d20b745ae5731be18765e74ac810b4f2ecbe930e Mon Sep 17 00:00:00 2001 From: GyDi Date: Thu, 24 Nov 2022 10:35:09 +0800 Subject: [PATCH] fix: direct mode hide proxies --- src/components/proxy/proxy-groups.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/proxy/proxy-groups.tsx b/src/components/proxy/proxy-groups.tsx index 6e0b7cb..c3cb26b 100644 --- a/src/components/proxy/proxy-groups.tsx +++ b/src/components/proxy/proxy-groups.tsx @@ -12,6 +12,7 @@ import { useVerge } from "@/hooks/use-verge"; import { useRenderList } from "./use-render-list"; import { ProxyRender } from "./proxy-render"; import delayManager from "@/services/delay"; +import { BaseEmpty } from "../base"; interface Props { mode: string; @@ -103,6 +104,10 @@ export const ProxyGroups = (props: Props) => { } }; + if (mode === "direct") { + return ; + } + return (