Commit f007c78c by liimin

1

1 parent 562aeb7b
......@@ -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;
}
......
......@@ -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;
}
}
// }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!