fix: try fix undefined error

This commit is contained in:
GyDi 2023-07-28 09:26:06 +08:00
parent b978aaec21
commit b9b6212b75
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A

View File

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