Commit 461cefb0 authored by 前端-许佳敏's avatar 前端-许佳敏

fix:补充会员直接新增密码需加密

parent 97ad34ed
......@@ -17,6 +17,7 @@ import { findItemAndDelete, omit, getParentTreeTitles } from '@/utils';
import TabTree, { useTreeActions, createTreeActions } from '@/components/TabTree';
import { useTreeTabs } from '@/hooks/useTreeTabs';
import { useHttpRequest } from '@/hooks/useHttpRequest';
import { encryptedByAES } from '@/utils/cryptoAes';
const titleRender = (title) => {
if (title === PageStatus.PREVIEW) return '查看用户'
......@@ -67,6 +68,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