feat: login

This commit is contained in:
魔力叉烧包
2025-06-08 22:57:23 +08:00
parent 082c5483c5
commit 5acc25c8c9
9 changed files with 190 additions and 36 deletions

View File

@ -1,9 +1,10 @@
import { useSelector } from 'react-redux';
import { selectRoleType } from '@/store/selector';
import { RoleType } from '@/constants/app';
function useRoleType() {
return useSelector(selectRoleType);
return useSelector(selectRoleType) || RoleType.Anchor;
}
export default useRoleType;