个人详情界面日期显示优化,完善了编辑信息和修改密码功能
This commit is contained in:
@@ -51,6 +51,15 @@ export const getUserProfile = (id: number) => {
|
||||
});
|
||||
};
|
||||
|
||||
// 更新用户信息
|
||||
export const updateUserProfile = (data: Partial<UserInfo>) => {
|
||||
return http({
|
||||
url: "/user/update",
|
||||
method: "put",
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
// 获取用户地址列表
|
||||
export const getAddressList = (userId: number) => {
|
||||
return http<UserAddress[]>({
|
||||
|
||||
Reference in New Issue
Block a user