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

This commit is contained in:
2025-06-19 09:15:03 +08:00
parent bd862e54fa
commit 70c89b783a
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';