Commit 365fbb03 by liimin

1

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