chore: adjust type
This commit is contained in:
@@ -4,7 +4,7 @@ import { getVergeConfig, patchVergeConfig } from "@/services/cmds";
|
||||
export const useVergeConfig = () => {
|
||||
const { data, mutate } = useSWR("getVergeConfig", getVergeConfig);
|
||||
|
||||
const patchVerge = async (value: Partial<CmdType.VergeConfig>) => {
|
||||
const patchVerge = async (value: Partial<IVergeConfig>) => {
|
||||
await patchVergeConfig(value);
|
||||
mutate();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user