fix: fix auth

This commit is contained in:
2025-09-07 17:38:47 +08:00
parent 81340c6e8a
commit ff35fb7b40
4 changed files with 19 additions and 6 deletions

View File

@@ -364,7 +364,7 @@ export const fetchUserProfile = async (): Promise<ApiResponse<UserInfoType>> =>
// 更新用户信息
export const updateUserProfile = async (payload: Partial<UserInfoType>) => {
try {
const response = await httpService.post('api/user/update', payload);
const response = await httpService.post('/user/update', payload);
return response;
} catch (error) {
console.error('更新用户信息失败:', error);