Revert Use Tauri Http Api

This commit is contained in:
MystiPanda
2024-01-15 10:18:04 +08:00
parent 8fc4b338c2
commit b6d748b414
4 changed files with 54 additions and 66 deletions

View File

@@ -10,7 +10,7 @@ import { alpha, List, Paper, ThemeProvider } from "@mui/material";
import { listen } from "@tauri-apps/api/event";
import { appWindow } from "@tauri-apps/api/window";
import { routers } from "./_routers";
import { refreshClashInfo } from "@/services/api";
import { getAxios } from "@/services/api";
import { useVerge } from "@/hooks/use-verge";
import LogoSvg from "@/assets/image/logo.svg?react";
import { BaseErrorBoundary, Notice } from "@/components/base";
@@ -50,7 +50,7 @@ const Layout = () => {
listen("verge://refresh-clash-config", async () => {
// the clash info may be updated
await refreshClashInfo();
await getAxios(true);
mutate("getProxies");
mutate("getVersion");
mutate("getClashConfig");