优化固定Header后顶部导航栏样式问题(I4XDN5)

This commit is contained in:
RuoYi 2022-03-17 09:43:19 +08:00
parent 72f35742d4
commit a5153cea4c
2 changed files with 7 additions and 0 deletions

View File

@ -98,6 +98,10 @@ function setLayout() {
width: calc(100% - 54px);
}
.sidebarHide .fixed-header {
width: calc(100%);
}
.mobile .fixed-header {
width: 100%;
}

View File

@ -12,6 +12,9 @@ const state = {
const mutations = {
TOGGLE_SIDEBAR: state => {
if (state.sidebar.hide) {
return false;
}
state.sidebar.opened = !state.sidebar.opened
state.sidebar.withoutAnimation = false
if (state.sidebar.opened) {