refactor(projects): page manage_role: extract module

This commit is contained in:
Soybean
2024-01-28 01:25:04 +08:00
parent 237c6d227e
commit 0e9e2e1dc0
6 changed files with 187 additions and 71 deletions

View File

@ -0,0 +1,12 @@
import { useContext } from '@sa/hooks';
function useRoleSearch(searchParams: Api.SystemManage.RoleSearchParams) {
return {
searchParams
};
}
export const { setupStore: setupRoleSearchContext, useStore: useRoleSearchContext } = useContext(
'role-search',
useRoleSearch
);