Skip to content

Commit ab47aae

Browse files
committed
v3.8.2 优化固定Header后顶部导航栏样式问题(I4XDN5)
1 parent 25985ea commit ab47aae

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/layout/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ export default {
101101
width: calc(100% - 54px);
102102
}
103103
104+
.sidebarHide .fixed-header {
105+
width: calc(100%);
106+
}
107+
104108
.mobile .fixed-header {
105109
width: 100%;
106110
}

src/store/modules/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const state = {
1212

1313
const mutations = {
1414
TOGGLE_SIDEBAR: state => {
15+
if (state.sidebar.hide) {
16+
return false;
17+
}
1518
state.sidebar.opened = !state.sidebar.opened
1619
state.sidebar.withoutAnimation = false
1720
if (state.sidebar.opened) {

0 commit comments

Comments
 (0)