Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
ReactWeb5
CivManage
Commits
eb97d4b1
Commit
eb97d4b1
authored
Nov 20, 2020
by
张烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: checkgroup
parent
975f5d33
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
index.jsx
src/components/CheckGroup/index.jsx
+1
-1
index.js
src/pages/user/login/index.js
+1
-1
RoleManage.jsx
src/pages/userCenter/roleManage/RoleManage.jsx
+1
-0
SiteManage.jsx
src/pages/userCenter/siteManage/SiteManage.jsx
+1
-0
No files found.
src/components/CheckGroup/index.jsx
View file @
eb97d4b1
...
...
@@ -22,7 +22,7 @@ export const checkChildrenByCondition = (
return
fn
(
item
);
}
const
childrenResults
=
item
.
children
[
method
](
t
=>
checkChildrenByCondition
(
t
,
fn
,
method
),
checkChildrenByCondition
(
t
,
fn
,
withGroup
,
method
),
);
return
withGroup
?
[
fn
(
item
),
...
childrenResults
]
:
[...
childrenResults
];
};
...
...
src/pages/user/login/index.js
View file @
eb97d4b1
...
...
@@ -39,7 +39,7 @@ const Login = props => {
msg
,
}
=
result
;
if
(
pass
===
true
)
{
localStorage
.
setItem
(
'token'
,
token
?.
access_token
);
localStorage
.
setItem
(
'token'
,
token
?.
access_token
||
''
);
setUserMode
(
userMode
);
if
(
userMode
===
USER_MODE
.
ADMIN
||
userMode
===
USER_MODE
.
SUPER
)
{
const
authority
=
[
AUTHORITY
.
LOGIN
,
AUTHORITY
[
userMode
]];
...
...
src/pages/userCenter/roleManage/RoleManage.jsx
View file @
eb97d4b1
...
...
@@ -136,6 +136,7 @@ const SiteManage = () => {
checkChildrenByCondition
(
l
,
it
=>
(
it
.
isChecked
?
[
getId
(
it
)]
:
[]),
true
,
'map'
,
).
flat
(
Infinity
),
)
...
...
src/pages/userCenter/siteManage/SiteManage.jsx
View file @
eb97d4b1
...
...
@@ -105,6 +105,7 @@ const SiteManage = () => {
checkChildrenByCondition
(
l
,
it
=>
(
it
.
isChecked
?
[
getId
(
it
)]
:
[]),
true
,
'map'
,
).
flat
(
Infinity
),
)
...
...
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