|
|
@@ -1,7 +1,7 @@
|
|
|
import {FC} from 'react';
|
|
|
import {useFetchUserInfo, useField} from './hooks';
|
|
|
import {ModalField, ModalSelect} from '@components';
|
|
|
-import {useDepartmentOptions, useRoleOptions} from '@hooks';
|
|
|
+import {useDictionaryOptions, useRoleOptions} from '@hooks';
|
|
|
|
|
|
type Props = {
|
|
|
id: string;
|
|
|
@@ -11,7 +11,7 @@ const width = '350px';
|
|
|
|
|
|
const UserModalInfo: FC<Props> = function({id}) {
|
|
|
const roleOptions = useRoleOptions();
|
|
|
- const departmentOptions = useDepartmentOptions();
|
|
|
+ const departmentOptions = useDictionaryOptions('部门字典');
|
|
|
const {control} = useField();
|
|
|
useFetchUserInfo(id);
|
|
|
|