浏览代码

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

xyh 2 年之前
父节点
当前提交
e94721fd95
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);