Commit 365fbb03 by liimin

1

1 parent dde05cd5
......@@ -58,8 +58,13 @@ export default {
this.bus.$off('menuChanged', this.handleMenuChanged)
},
methods: {
handleModuleClick(menu) {
this.$router.push(menu.path)
handleModuleClick({ path, id }) {
const { lv1, lv2 } = this.current
if (id == `${lv1}-${lv2}`) return
if (path && path.startsWith('/') && !path.startsWith('/^')) {
this.$router.push(path)
}
this.bus.$emit('menu3Changed', [])
},
isMenuNoChildren({ children = [] }) {
return children.noHidden().length == 0
......@@ -116,7 +121,8 @@ $active-background-color: rgba(88, 80, 255, 0.2) !important;
// right: 0;
visibility: hidden;
}
&:not(.hasNoChild) {// has children title
&:not(.hasNoChild) {
// has children title
cursor: default !important;
border-bottom: 1px solid #eee;
span {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!