Explorar o código

fix: try fix undefined error

GyDi hai 1 ano
pai
achega
b9b6212b75
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/pages/proxies.tsx

+ 1 - 1
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) => {
     // 断开连接