fix: 🐛 刷新token接口适配后端调整

This commit is contained in:
ray
2025-01-20 14:24:32 +08:00
parent 4b86d26070
commit f4380d56a3

View File

@@ -22,19 +22,17 @@ const AuthAPI = {
/** 刷新 token 接口*/
refreshToken(refreshToken: string) {
const formData = new FormData();
formData.append("refreshToken", refreshToken);
return request<any, LoginResult>({
url: `${AUTH_BASE_URL}/refresh-token`,
method: "post",
data: formData,
params: { refreshToken: refreshToken },
headers: {
Authorization: "no-auth",
},
});
},
/** 注销接口 */
/** 注销登录接口 */
logout() {
return request({
url: `${AUTH_BASE_URL}/logout`,