diff --git a/src/layout/index.vue b/src/layout/index.vue index 08a4cc7..171f268 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -311,6 +311,10 @@ } // 顶栏菜单标题中样式调整 + .ele-admin-header-nav{ + display: flex; + justify-content: center; + } .ele-admin-header-nav > .ant-menu { & > .ant-menu-item, & > .ant-menu-submenu > .ant-menu-submenu-title { diff --git a/src/store/modules/theme.ts b/src/store/modules/theme.ts index ebee743..87e7b7b 100644 --- a/src/store/modules/theme.ts +++ b/src/store/modules/theme.ts @@ -49,7 +49,7 @@ const DEFAULT_STATE: ThemeState = Object.freeze({ // 侧栏风格: light(亮色), dark(暗色) sideStyle: 'light', // 布局风格: side(默认), top(顶栏导航), mix(混合导航) - layoutStyle: 'side', + layoutStyle: 'mix', // 侧栏菜单风格: default(默认), mix(双排侧栏) sideMenuStyle: 'default', // 页签风格: default(默认), dot(圆点), card(卡片) @@ -57,7 +57,7 @@ const DEFAULT_STATE: ThemeState = Object.freeze({ // 路由切换动画 transitionName: 'fade', // 是否固定顶栏 - fixedHeader: true, + fixedHeader: false, // 是否固定侧栏 fixedSidebar: true, // 是否固定主体 @@ -65,7 +65,7 @@ const DEFAULT_STATE: ThemeState = Object.freeze({ // 内容区域宽度铺满 bodyFull: true, // logo 是否自适应宽度 - logoAutoSize: false, + logoAutoSize: true, // 侧栏是否彩色图标 colorfulIcon: false, // 侧栏是否只保持一个子菜单展开