Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
CivWeb
Commits
fbba9569
Commit
fbba9569
authored
3 years ago
by
曾婧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改华农主题先加载样式再展示
parent
2d27598b
master
dev
devNew
feat/layout-flat
patch-1
soundai
test
zhongyi
No related merge requests found
Pipeline
#48528
passed with stages
in 2 minutes 16 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
index.js
src/layouts/AppLayout/components/SlideMenu/index.js
+3
-6
No files found.
src/layouts/AppLayout/components/SlideMenu/index.js
View file @
fbba9569
...
...
@@ -5,7 +5,7 @@ import { ReactSVG } from 'react-svg';
import
useMergedState
from
'rc-util/lib/hooks/useMergedState'
;
import
{
useHistory
}
from
'@wisdom-utils/runtime'
;
import
ProLayout
,
{
getPageTitle
}
from
'@ant-design/pro-layout'
;
import
'../../../HN.less'
;
import
HNStyles
from
'../../../HN.less'
;
const
LoadingSkeleton
=
props
=>
{
const
{
route
}
=
props
;
return
(
...
...
@@ -78,7 +78,7 @@ const Menu = props => {
);
return
(
<
LoadingSkeleton
{...
props
}
>
{
route
&&
route
.
routes
&&
route
.
routes
.
length
>
0
&&
(
{
route
&&
route
.
routes
&&
route
.
routes
.
length
>
0
&&
HNStyles
&&
(
<
React
.
Fragment
>
{
menuHeaderRender
?
(
menuHeaderRender
(
props
)
...
...
@@ -138,9 +138,7 @@ const Menu = props => {
)
:
null
}
subMenuItemRender
=
{(
item
,
dom
)
=>
(
<
div
className
=
{
classNames
(
`test-icon`
)}
>
<
div
className
=
{
classNames
(
`test-icon`
)}
>
{
/
.
svg
/
.
test
(
item
.
extData
.
icon
)
?
(
<
div
className
=
"my-svg"
>
<
ReactSVG
src
=
{
item
.
extData
.
icon
}
style
=
{{
width
:
'100%'
,
height
:
'100%'
}}
/
>
...
...
@@ -157,7 +155,6 @@ const Menu = props => {
<
/div
>
)}
/
>
<
/ul
>
<
/React.Fragment
>
)}
...
...
This diff is collapsed.
Click to expand it.
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