Skip to content
Snippets Groups Projects
Unverified Commit a211fc7c authored by GyDi's avatar GyDi
Browse files

fix: something

parent 54af0b67
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,7 @@ const Layout = () => { ...@@ -54,6 +54,7 @@ const Layout = () => {
// the clash info may be updated // the clash info may be updated
await getAxios(true); await getAxios(true);
mutate("getProxies"); mutate("getProxies");
mutate("getVersion");
mutate("getClashConfig"); mutate("getClashConfig");
}); });
......
...@@ -42,7 +42,7 @@ const ProxyPage = () => { ...@@ -42,7 +42,7 @@ const ProxyPage = () => {
// 仅mode为全局和直连的时候展示global分组 // 仅mode为全局和直连的时候展示global分组
const displayGroups = useMemo(() => { const displayGroups = useMemo(() => {
if (!global) return groups; if (!global) return groups;
if (curMode === "global" || curMode === "direct") if (curMode === "global" || curMode === "direct" || groups.length === 0)
return [global, ...groups]; return [global, ...groups];
return groups; return groups;
}, [global, groups, curMode]); }, [global, groups, curMode]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment