refactor: change core binary name

This commit is contained in:
MystiPanda
2024-06-19 10:04:28 +08:00
parent 6fa0f92ceb
commit 28ab08a7ca
16 changed files with 113 additions and 82 deletions

View File

@@ -24,12 +24,7 @@ const ProxyPage = () => {
const { verge } = useVerge();
const modeList = useMemo(() => {
if (verge?.clash_core?.includes("clash-meta")) {
return ["rule", "global", "direct"];
}
return ["rule", "global", "direct", "script"];
}, [verge?.clash_core]);
const modeList = ["rule", "global", "direct"];
const curMode = clashConfig?.mode?.toLowerCase();