feat: add user avatar

This commit is contained in:
jialin
2025-08-14 16:39:25 +08:00
parent d6dce4021d
commit 5bd5c7d2c5
12 changed files with 149 additions and 16 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { request } from '@umijs/max';
export async function queryCurrentUserState(opts?: Record<string, any>) {
return request(`/users/me`, {
return request<Global.UserInfo>(`/users/me`, {
method: 'GET',
...opts
});