mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-14 20:53:56 +08:00
feat: 添加退出登录, 优化闪跳
This commit is contained in:
10
ui/src/hooks/context.ts
Normal file
10
ui/src/hooks/context.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { use } from 'react';
|
||||
import { AuthContext, CommonContext } from '@/context';
|
||||
|
||||
export const useAuthContext = () => {
|
||||
return use(AuthContext);
|
||||
};
|
||||
|
||||
export const useCommonContext = () => {
|
||||
return use(CommonContext);
|
||||
};
|
||||
Reference in New Issue
Block a user