Explorar el Código

fix: try fix undefined error

GyDi hace 1 año
padre
commit
b9b6212b75
Se han modificado 1 ficheros con 1 adiciones y 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) => {
     // 断开连接