mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:02:22 +08:00
fix: proxy page first render
This commit is contained in:
@@ -17,7 +17,7 @@ const ProxyPage = () => {
|
|||||||
const { data: clashConfig } = useSWR("getClashConfig", getClashConfig);
|
const { data: clashConfig } = useSWR("getClashConfig", getClashConfig);
|
||||||
|
|
||||||
const modeList = ["rule", "global", "direct"];
|
const modeList = ["rule", "global", "direct"];
|
||||||
const curMode = clashConfig?.mode.toLowerCase() ?? "direct";
|
const curMode = clashConfig?.mode.toLowerCase();
|
||||||
const { groups = [], proxies = [] } = proxiesData ?? {};
|
const { groups = [], proxies = [] } = proxiesData ?? {};
|
||||||
|
|
||||||
// make sure that fetch the proxies successfully
|
// make sure that fetch the proxies successfully
|
||||||
|
|||||||
Reference in New Issue
Block a user