refactor: 修改日志接口路径及刷新token请求参数格式

This commit is contained in:
Ray.Hao
2026-04-04 17:39:59 +08:00
parent 69c3c1a3c0
commit 9654913a21
3 changed files with 8 additions and 5 deletions

View File

@@ -36,10 +36,13 @@ const AuthAPI = {
/** 刷新 token 接口*/
refreshToken(refreshToken: string) {
const params = new URLSearchParams();
params.append("refresh_token", refreshToken);
return request<any, LoginResponse>({
url: `${AUTH_BASE_URL}/refresh-token`,
method: "post",
params: { refreshToken },
data: params,
headers: {
Authorization: "no-auth",
},