移动USER_ME_CACHE_KEY到UserApi中、登出移除该缓存

This commit is contained in:
2025-06-19 09:15:03 +08:00
parent 3ac2a164a5
commit 00ce4850fa
3 changed files with 10 additions and 8 deletions

View File

@@ -3,4 +3,6 @@ import fetcher from "../fetcher";
export async function me() {
return fetcher<User>('/api/user/me');
}
}
export const USER_ME_CACHE_KEY = 'user-me-cache';