Commit d6ef0ccd6021d0825fe592bf80f7b60edafab258
1 parent
2ad73cd6
v3.8.2 优化固定Header后顶部导航栏样式问题(I4XDN5)
Showing
2 changed files
with
7 additions
and
0 deletions
yudao-ui-admin/src/layout/index.vue
yudao-ui-admin/src/store/modules/app.js
| ... | ... | @@ -12,6 +12,9 @@ const state = { |
| 12 | 12 | |
| 13 | 13 | const mutations = { |
| 14 | 14 | TOGGLE_SIDEBAR: state => { |
| 15 | + if (state.sidebar.hide) { | |
| 16 | + return false; | |
| 17 | + } | |
| 15 | 18 | state.sidebar.opened = !state.sidebar.opened |
| 16 | 19 | state.sidebar.withoutAnimation = false |
| 17 | 20 | if (state.sidebar.opened) { | ... | ... |