🔨 优化错误提示.

This commit is contained in:
lijiahangmax
2025-10-17 14:14:34 +08:00
parent f648e18557
commit 0649c4e3de
5 changed files with 26 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import type { MenuQueryResponse } from '@/api/system/menu';
import type { AxiosResponse } from 'axios';
import type { HttpResponse } from '@/types/global';
import axios from 'axios';
/**
@@ -36,7 +36,7 @@ export interface UserUpdatePasswordResponse {
* 获取用户聚合信息
*/
export function getUserAggregateInfo() {
return axios.get<AxiosResponse<UserAggregateResponse>>('/infra/user-aggregate/user', {
return axios.get<HttpResponse<UserAggregateResponse>>('/infra/user-aggregate/user', {
unwrap: true
});
}