mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
refactor: Use Tauri Http API
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user