fix: try fix undefined error
This commit is contained in:
parent
b978aaec21
commit
b9b6212b75
@ -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) => {
|
||||
// 断开连接
|
||||
|
Loading…
x
Reference in New Issue
Block a user