refactor: reorganize imports and remove unused axios instance code

This commit is contained in:
Tunglies
2025-11-10 02:12:16 +08:00
parent a8fe5a71f7
commit 204bfa36e5
3 changed files with 4 additions and 45 deletions
-2
View File
@@ -4,7 +4,6 @@ import { useEffect } from "react";
import { mutate } from "swr";
import { useListen } from "@/hooks/use-listen";
import { getAxios } from "@/services/api";
export const useLayoutEvents = (
handleNotice: (payload: [string, string]) => void,
@@ -39,7 +38,6 @@ export const useLayoutEvents = (
register(
addListener("verge://refresh-clash-config", async () => {
await getAxios(true);
mutate("getProxies");
mutate("getVersion");
mutate("getClashConfig");