Revert Use Tauri Http Api

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

No files matched your search

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