Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f007c78c
authored
Sep 25, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
562aeb7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
src/layout/components/Breadcrumb3.vue
src/layout/components/LeftSide/LeftSideMenuLv1.vue
src/layout/components/Breadcrumb3.vue
View file @
f007c78
...
...
@@ -29,7 +29,7 @@ export default {
breadcrumbs
()
{
const
{
currentPage
,
menuList
:
menus
}
=
this
.
app
if
(
!
currentPage
||
!
menus
?.
length
)
return
[]
const
{
id
:
curId
,
title
,
navIds
=
curId
.
split
(
'-'
),
curTitle
=
decodeURI
(
title
)
}
=
currentPage
const
{
id
:
curId
,
title
,
navIds
=
curId
.
split
(
'-'
),
curTitle
=
decodeURI
(
title
)
,
hidden
}
=
currentPage
const
breads
=
navIds
.
reduce
((
navs
,
next
)
=>
{
const
{
length
,
nextId
=
length
?
`
${
navs
[
length
-
1
].
id
}
-
${
next
}
`
:
next
}
=
navs
const
[
menu
]
=
utils
.
array
.
valInDeep
(
menus
,
nextId
,
'id'
,
'children'
)
...
...
@@ -37,8 +37,8 @@ export default {
navs
.
push
({
id
,
title
:
titleLogic
,
path
})
return
navs
},
[])
//
const isShowBack = curId?.split('-').length > 2 && hidden
return
{
breads
,
isShowBack
:
true
}
const
isShowBack
=
curId
?.
split
(
'-'
).
length
>
2
&&
hidden
return
{
breads
,
isShowBack
}
},
...
mapGetters
([
'app'
,
'auth'
])
},
...
...
@@ -100,7 +100,6 @@ $bread-item-color: #333 !important;
&
:last-child
{
.el-breadcrumb__inner
{
text-decoration
:
none
!important
;
font-weight
:
700
!important
;
color
:
$
main-color
!important
;
cursor
:
default
!important
;
}
...
...
src/layout/components/LeftSide/LeftSideMenuLv1.vue
View file @
f007c78
...
...
@@ -81,9 +81,9 @@ $width: 160px;
margin
:
0
!important
;
left
:
calc
(
#{$
menu_width_collapse
}
)
!
important
;
border
:
none
!
important
;
box-shadow
:
0
6px
20px
0
#7a7a7a33
;
>
.com-left-side-menu-lv2
{
border-radius
:
4px
;
border-radius
:
8px
;
box-shadow
:
0
6px
20px
0
#7a7a7a33
;
}
}
//
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment