Sfoglia il codice sorgente

fix: try fix undefined error

GyDi 1 anno fa
parent
commit
b9b6212b75
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) => {
     // 断开连接