Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project
jinfa-admin
Commits
461cefb0
Commit
461cefb0
authored
Nov 23, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:补充会员直接新增密码需加密
parent
97ad34ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
userDetail.tsx
src/pages/authConfig/userSystem/userDetail.tsx
+2
-0
No files found.
src/pages/authConfig/userSystem/userDetail.tsx
View file @
461cefb0
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment