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
shenshaokai
jinfa-admin
Commits
0ee02286
Commit
0ee02286
authored
Jun 21, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 企业商城导航装修问题
parent
413848b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.tsx
.../settingsPanel/propsSettings/components/MallNav/index.tsx
+2
-1
No files found.
src/pages/pageCustomized/settingsPanel/propsSettings/components/MallNav/index.tsx
View file @
0ee02286
...
@@ -7,6 +7,7 @@ import { useEffect } from 'react'
...
@@ -7,6 +7,7 @@ import { useEffect } from 'react'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
isEmpty
from
'lodash/isEmpty'
import
isEmpty
from
'lodash/isEmpty'
import
cx
from
'classnames'
import
cx
from
'classnames'
import
{
cloneDeep
}
from
'lodash'
import
upIcon
from
'@/asserts/icons/up_icon.png'
import
upIcon
from
'@/asserts/icons/up_icon.png'
import
downIcon
from
'@/asserts/icons/down_icon.png'
import
downIcon
from
'@/asserts/icons/down_icon.png'
import
sortIcon
from
'@/asserts/icons/sort_icon.png'
import
sortIcon
from
'@/asserts/icons/sort_icon.png'
...
@@ -32,7 +33,7 @@ const MallNav: React.FC<MallNavProps> = (props) => {
...
@@ -32,7 +33,7 @@ const MallNav: React.FC<MallNavProps> = (props) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
!
isEmpty
(
menuData
))
{
if
(
!
isEmpty
(
menuData
))
{
const
newList
:
MenuItemType
[]
=
[...
menuData
]
const
newList
:
MenuItemType
[]
=
cloneDeep
(
menuData
)
newList
.
shift
()
newList
.
shift
()
if
(
newList
)
{
if
(
newList
)
{
setList
(
newList
.
map
(((
item
,
index
)
=>
{
setList
(
newList
.
map
(((
item
,
index
)
=>
{
...
...
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