Commit 893e80eb authored by 前端-许佳敏's avatar 前端-许佳敏

fix: 用户管理加密方法

parent 4900d442
......@@ -18,6 +18,7 @@ import { useTreeTabs } from '@/hooks/useTreeTabs';
import { useHttpRequest } from '@/hooks/useHttpRequest';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import ReutrnEle from '@/components/ReturnEle';
import { encryptedByAES } from '@/utils/cryptoAes';
const titleRender = (title) => {
if (title === PageStatus.PREVIEW) return '查看用户'
......@@ -70,6 +71,7 @@ const AddUser: React.FC<{}> = () => {
const onFinish = async (values: any) => {
values.memberRoleIds = values.memberRoleIds.map(v => v.id)
values.password = encryptedByAES(values.password);
const omitValue = omit(values, ['orgName'])
const params = id ? {
...omitValue,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment