From b9b6212b75999adece9c132d3fd57db4d66eaf2a Mon Sep 17 00:00:00 2001 From: GyDi Date: Fri, 28 Jul 2023 09:26:06 +0800 Subject: [PATCH] fix: try fix undefined error --- src/pages/proxies.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/proxies.tsx b/src/pages/proxies.tsx index 7be721c..2e2e629 100644 --- a/src/pages/proxies.tsx +++ b/src/pages/proxies.tsx @@ -30,7 +30,7 @@ const ProxyPage = () => { return ["rule", "global", "direct", "script"]; }, [verge?.clash_core]); - const curMode = clashConfig?.mode.toLowerCase(); + const curMode = clashConfig?.mode?.toLowerCase(); const onChangeMode = useLockFn(async (mode: string) => { // 断开连接