Commit f007c78c by liimin

1

1 parent 562aeb7b
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
breadcrumbs() { breadcrumbs() {
const { currentPage, menuList: menus } = this.app const { currentPage, menuList: menus } = this.app
if (!currentPage || !menus?.length) return [] 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 breads = navIds.reduce((navs, next) => {
const { length, nextId = length ? `${navs[length - 1].id}-${next}` : next } = navs const { length, nextId = length ? `${navs[length - 1].id}-${next}` : next } = navs
const [menu] = utils.array.valInDeep(menus, nextId, 'id', 'children') const [menu] = utils.array.valInDeep(menus, nextId, 'id', 'children')
...@@ -37,8 +37,8 @@ export default { ...@@ -37,8 +37,8 @@ export default {
navs.push({ id, title: titleLogic, path }) navs.push({ id, title: titleLogic, path })
return navs return navs
}, []) }, [])
// const isShowBack = curId?.split('-').length > 2 && hidden const isShowBack = curId?.split('-').length > 2 && hidden
return { breads, isShowBack: true } return { breads, isShowBack }
}, },
...mapGetters(['app', 'auth']) ...mapGetters(['app', 'auth'])
}, },
...@@ -100,7 +100,6 @@ $bread-item-color: #333 !important; ...@@ -100,7 +100,6 @@ $bread-item-color: #333 !important;
&:last-child { &:last-child {
.el-breadcrumb__inner { .el-breadcrumb__inner {
text-decoration: none !important; text-decoration: none !important;
font-weight: 700 !important;
color: $main-color !important; color: $main-color !important;
cursor: default !important; cursor: default !important;
} }
......
...@@ -81,9 +81,9 @@ $width: 160px; ...@@ -81,9 +81,9 @@ $width: 160px;
margin: 0 !important; margin: 0 !important;
left: calc(#{$menu_width_collapse}) !important; left: calc(#{$menu_width_collapse}) !important;
border: none !important; border: none !important;
box-shadow: 0 6px 20px 0 #7a7a7a33;
> .com-left-side-menu-lv2 { > .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!