Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
14dd1dc2
Commit
14dd1dc2
authored
Sep 23, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:未登录状态进入能力中心报错问题
parent
8948c1f5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
BasicLayout.tsx
src/layouts/BasicLayout.tsx
+1
-1
Roles.tsx
src/layouts/components/Roles.tsx
+1
-1
No files found.
src/layouts/BasicLayout.tsx
View file @
14dd1dc2
...
...
@@ -141,7 +141,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
)
}
collapsed=
{
collapsed
}
onCollapse=
{
handleMenuCollapse
}
disableContentMargin=
{
currentRouter
.
noMargin
!==
undefined
}
disableContentMargin=
{
currentRouter
?
.
noMargin
!==
undefined
}
breadcrumbRender=
{
(
routers
=
[])
=>
[
]
}
...
...
src/layouts/components/Roles.tsx
View file @
14dd1dc2
...
...
@@ -14,7 +14,7 @@ const Roles: React.FC = () => {
const
[
roles
,
setRoles
]
=
useState
<
MemberRole
[]
>
([]);
useEffect
(()
=>
{
const
userInfo
=
getAuth
();
const
userInfo
=
getAuth
()
||
{}
;
setRoles
(
userInfo
.
roles
||
[]);
if
(
userInfo
.
roles
&&
userInfo
.
roles
.
length
)
{
...
...
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