移除多余代码

This commit is contained in:
hooray 2021-10-20 09:15:25 +08:00
parent 3b7ab4d4f2
commit 0d34eaa5d9
4 changed files with 2 additions and 26 deletions

View File

@ -9,7 +9,5 @@ $g-main-sidebar-width: 70px;
$g-sub-sidebar-width: 220px;
// 侧边栏Logo高度
$g-sidebar-logo-height: 50px;
// 标签栏高度
$g-tabbar-height: 40px;
// 顶部导航栏高度
$g-topbar-height: 50px;

View File

@ -14,9 +14,5 @@
.topbar-container + .main .absolute-container {
height: calc(100% - #{$g-topbar-height});
}
.tabbar-container + .topbar-container + .main .absolute-container,
.topbar-container + .tabbar-container + .main .absolute-container {
height: calc(100% - #{$g-tabbar-height} - #{$g-topbar-height});
}
}
</style>

View File

@ -174,7 +174,6 @@ function switchMenu(index) {
padding-top: 0;
.main-container {
margin-left: 0;
.tabbar-container,
.topbar-container {
display: none;
}
@ -230,13 +229,10 @@ function switchMenu(index) {
transition: margin-left 0.3s;
background-color: $g-main-bg;
box-shadow: 1px 0 0 0 darken($g-main-bg, 10);
.tabbar-container + .topbar-container {
top: $g-tabbar-height;
.topbar-container {
top: 0;
z-index: 998;
}
.topbar-container + .tabbar-container {
top: $g-topbar-height;
}
.main {
height: 100%;
flex: auto;
@ -248,10 +244,6 @@ function switchMenu(index) {
.topbar-container + .main {
padding: calc(#{$g-topbar-height}) 0 0;
}
.tabbar-container + .topbar-container + .main,
.topbar-container + .tabbar-container + .main {
padding: calc(#{$g-tabbar-height} + #{$g-topbar-height}) 0 0;
}
}
}
header + .wrapper {
@ -266,21 +258,12 @@ header + .wrapper {
}
}
.main-container {
.tabbar-container {
top: $g-header-height;
}
.topbar-container {
top: $g-header-height;
:deep(.user) {
display: none;
}
}
.tabbar-container + .topbar-container {
top: calc(#{$g-header-height} + #{$g-tabbar-height});
}
.topbar-container + .tabbar-container {
top: calc(#{$g-header-height} + #{$g-topbar-height});
}
}
}

View File

@ -37,7 +37,6 @@ const actions = {
logout({ commit }) {
commit('removeUserData')
commit('menu/invalidRoutes', null, { root: true })
commit('tabbar/clean', null, { root: true })
commit('menu/removeRoutes', null, { root: true })
},
// 获取我的权限