refactor: Use Tauri Http API

This commit is contained in:
MystiPanda committed 2024-01-14 19:35:03 +08:00
1 parent 71103bb7b9
commit d01ef48bf0
5 files changed
+67 -55

No files matched your search

+2 -2
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 {