用户信息变更

This commit is contained in:
2025-11-26 12:03:34 +08:00
parent 8ff849d050
commit 8d8ecf8763
15 changed files with 203 additions and 88 deletions

View File

@@ -184,7 +184,7 @@ request.interceptors.response.use(
case 401:
ElMessage.error('认证失败,请重新登录');
TokenManager.removeToken();
window.location.href = '/login';
window.location.href = '/schoolNewsWeb/login';
break;
case 403:
ElMessage.error('没有权限访问该资源');

View File

@@ -31,7 +31,7 @@ export const userProfileApi = {
* @param userInfo 用户信息
* @returns Promise<ResultDomain<any>>
*/
async updateUserProfile(userInfo: any): Promise<ResultDomain<any>> {
async updateUserProfile(userInfo: UserVO): Promise<ResultDomain<any>> {
const response = await api.put<any>('/usercenter/profile/info/update', userInfo);
return response.data;
},