mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-19 23:25:41 +08:00
fix: patch clash config
This commit is contained in:
1 parent
f30ef61b06
commit
a89e433f3d
2 files changed
+10
-4
No files matched your search
@@ -61,10 +61,14 @@ const ClashPortViewer = ({ handler }: Props) => {
|
||||
setOpen(false);
|
||||
if (port === config?.["mixed-port"]) return;
|
||||
|
||||
await patchClashConfig({ "mixed-port": port });
|
||||
setGlobalClashPort(port);
|
||||
Notice.success("Change Clash port successfully!", 1000);
|
||||
mutateClash();
|
||||
try {
|
||||
await patchClashConfig({ "mixed-port": port });
|
||||
setGlobalClashPort(port);
|
||||
Notice.success("Change Clash port successfully!", 1000);
|
||||
mutateClash();
|
||||
} catch (err: any) {
|
||||
Notice.error(err.message || err.toString(), 5000);
|
||||
}
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user