feat: 添加退出登录, 优化闪跳

This commit is contained in:
Gavan
2025-07-22 15:06:39 +08:00
parent 472ad769a9
commit 7c33568da2
13 changed files with 234 additions and 33 deletions

10
ui/src/hooks/context.ts Normal file
View 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);
};