Update API request formatting and routing structure

This commit is contained in:
wangqiao
2025-08-27 21:54:08 +08:00
parent 0f96406b5a
commit 170113e11c
23 changed files with 124 additions and 118 deletions

View File

@ -71,5 +71,7 @@ const useClientRequest = async <T = unknown>(
body?: any,
config?: Omit<FetchOptions, 'method' | 'body'>
): Promise<T> => {
console.log({ ...config, method: 'PUT', body });
return useClientRequest<T>(endpoint, { ...config, method: 'PUT', body })
}