refactor(projects): page manage_role: extract module
This commit is contained in:
12
src/views/manage/role/context.ts
Normal file
12
src/views/manage/role/context.ts
Normal 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
|
||||
);
|
||||
Reference in New Issue
Block a user