refactor: Use Tauri Http API

This commit is contained in:
MystiPanda
2024-01-14 18:35:10 +08:00
parent ba7242a815
commit a6acb15a00
5 changed files with 67 additions and 55 deletions

View File

@@ -1,7 +1,7 @@
import useSWR, { mutate } from "swr";
import { useLockFn } from "ahooks";
import {
getAxios,
refreshClashInfo,
getClashConfig,
getVersion,
updateConfigs,
@@ -72,7 +72,7 @@ export const useClashInfo = () => {
mutateInfo();
mutate("getClashConfig");
// 刷新接口
getAxios(true);
await refreshClashInfo();
};
return {