Explorar o código

chore: 部门列表从字典表获取

xyh %!s(int64=2) %!d(string=hai) anos
pai
achega
e94721fd95
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/app/src/pages/user/table/modal/Info.tsx

+ 2 - 2
packages/app/src/pages/user/table/modal/Info.tsx

@@ -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);