fix(fetch): fix

This commit is contained in:
zhangheng
2026-03-16 17:08:57 +08:00
parent 37ecb4641b
commit a55a0bfbc5
7 changed files with 103 additions and 101 deletions

View File

@@ -47,11 +47,18 @@ export const fetchFeishuLogin = (params: Login.ReqFeishuLogin) => {
}
// 刷新token
export const refreshKey = (params: { token: string }) => {
return httpFetch<ResultData<Login.ResRefreshKey>>({
// export const refreshKey = (params: { token: string }) => {
// return httpFetch<ResultData<Login.ResRefreshKey>>({
// url: BASE_PATH + `/api/v1/label_server/user/refresh_token`,
// method: "POST",
// data: params,
// isRefresh: true,
// })
// }
export const refreshKey = () => {
return httpFetch<Login.ResRefreshKey>({
url: BASE_PATH + `/api/v1/label_server/user/refresh_token`,
method: "POST",
body: JSON.stringify(params),
method: "GET",
isRefresh: true,
})
}