移动USER_ME_CACHE_KEY到UserApi中、登出移除该缓存
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user