mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-17 14:27:18 +00:00
Merge pull request #2221 from jumpserver/revert-2220-pr@v3@feaat_router_submenu_open
Revert "feat: 仪表盘、工作台默认展开子菜单"
This commit is contained in:
commit
cc9b4ea2bd
@ -30,7 +30,6 @@
|
|||||||
<el-menu
|
<el-menu
|
||||||
class="left-menu"
|
class="left-menu"
|
||||||
:default-active="activeMenu"
|
:default-active="activeMenu"
|
||||||
:default-openeds="opensMenu"
|
|
||||||
:collapse="isCollapse"
|
:collapse="isCollapse"
|
||||||
:background-color="variables['menuBg']"
|
:background-color="variables['menuBg']"
|
||||||
:text-color="variables['menuText']"
|
:text-color="variables['menuText']"
|
||||||
@ -98,13 +97,6 @@ export default {
|
|||||||
this.$log.debug('Active menu path3: ', locPath)
|
this.$log.debug('Active menu path3: ', locPath)
|
||||||
return locPath
|
return locPath
|
||||||
},
|
},
|
||||||
opensMenu() {
|
|
||||||
const { meta } = this.$route
|
|
||||||
if (meta?.opensMenu) {
|
|
||||||
return meta.opensMenu
|
|
||||||
}
|
|
||||||
return []
|
|
||||||
},
|
|
||||||
showLogo() {
|
showLogo() {
|
||||||
return this.$store.state.settings.sidebarLogo
|
return this.$store.state.settings.sidebarLogo
|
||||||
},
|
},
|
||||||
@ -154,19 +146,15 @@ export default {
|
|||||||
.switch-view {
|
.switch-view {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
right: 16px;
|
right: 0;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
padding: 3px;
|
|
||||||
line-height: 10px;
|
|
||||||
border-radius: 3px;
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--menu-hover)!important;
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
.icon {
|
.icon {
|
||||||
margin-right: 0!important;
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--color-primary)!important;
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,6 @@ export default {
|
|||||||
meta: {
|
meta: {
|
||||||
icon: 'dashboard',
|
icon: 'dashboard',
|
||||||
title: i18n.t('route.Dashboard'),
|
title: i18n.t('route.Dashboard'),
|
||||||
opensMenu: ['/audit/sessions', '/audit/logs'],
|
|
||||||
permissions: []
|
permissions: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -21,7 +21,6 @@ Vue.use(Router)
|
|||||||
icon: 'svg-name' the icon show in the sidebar
|
icon: 'svg-name' the icon show in the sidebar
|
||||||
breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
|
breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
|
||||||
activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
|
activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
|
||||||
opensMenu: ['/app/list'] expand submenu by default
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
import commonRoutes from './common'
|
import commonRoutes from './common'
|
||||||
|
@ -29,7 +29,6 @@ export default {
|
|||||||
meta: {
|
meta: {
|
||||||
icon: 'overview',
|
icon: 'overview',
|
||||||
title: i18n.t('route.Overview'),
|
title: i18n.t('route.Overview'),
|
||||||
opensMenu: ['/workbench/ops'],
|
|
||||||
permissions: []
|
permissions: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user