diff --git a/src/assets/styles/element-ui.scss b/src/assets/styles/element-ui.scss index 4cc1301..f7ee6ef 100644 --- a/src/assets/styles/element-ui.scss +++ b/src/assets/styles/element-ui.scss @@ -106,3 +106,8 @@ -ms-user-select: none; user-select: none; } + +// fix 侧边栏二级导航缩小图标消失问题 +.el-sub-menu__title { + padding-right: unset !important; +} diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index 8c46979..d0a08c4 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -36,16 +36,16 @@ const props = defineProps({ // route object item: { type: Object, - required: true, + required: true }, isNest: { type: Boolean, - default: false, + default: false }, basePath: { type: String, - default: '', - }, + default: '' + } }) const onlyOneChild = ref({}) @@ -89,7 +89,7 @@ function resolvePath(routePath, routeQuery) { let query = JSON.parse(routeQuery) return { path: getNormalPath(props.basePath + '/' + routePath), - query: query, + query: query } } return getNormalPath(props.basePath + '/' + routePath)