2
0

fix:修改个人信息界面以及接口

This commit is contained in:
zhongzm
2024-12-13 19:14:29 +08:00
parent bf911bac96
commit 7cf6249fd8
5 changed files with 129 additions and 35 deletions

View File

@@ -50,9 +50,16 @@ export function doDeleteLogout() {
/** Get user info */
export function doGetUserInfo() {
return request<Api.Auth.UserInfo>({ url: '/u/user/getInfo' });
return request<Api.Auth.UserInfo>({ url: '/u/user/getInfo',method:'get' });
}
/** change user info */
export function doChangeUserInfo(body: Api.Auth.ChangeInfoBody){
return request({
url:'/u/user/profile',
method:'put',
data:body
});
}
/**
* Refresh token
*