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

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