fix 侧边栏二级导航缩小图标消失问题

This commit is contained in:
不做码农 2023-02-17 17:30:16 +08:00
parent d33bbaf445
commit 3494625723
2 changed files with 10 additions and 5 deletions

View File

@ -106,3 +106,8 @@
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
} }
// fix 侧边栏二级导航缩小图标消失问题
.el-sub-menu__title {
padding-right: unset !important;
}

View File

@ -36,16 +36,16 @@ const props = defineProps({
// route object // route object
item: { item: {
type: Object, type: Object,
required: true, required: true
}, },
isNest: { isNest: {
type: Boolean, type: Boolean,
default: false, default: false
}, },
basePath: { basePath: {
type: String, type: String,
default: '', default: ''
}, }
}) })
const onlyOneChild = ref({}) const onlyOneChild = ref({})
@ -89,7 +89,7 @@ function resolvePath(routePath, routeQuery) {
let query = JSON.parse(routeQuery) let query = JSON.parse(routeQuery)
return { return {
path: getNormalPath(props.basePath + '/' + routePath), path: getNormalPath(props.basePath + '/' + routePath),
query: query, query: query
} }
} }
return getNormalPath(props.basePath + '/' + routePath) return getNormalPath(props.basePath + '/' + routePath)