diff --git a/yudao-ui-admin/src/layout/components/Sidebar/Item.vue b/yudao-ui-admin/src/layout/components/Sidebar/Item.vue index b515f6159..be3285dfb 100644 --- a/yudao-ui-admin/src/layout/components/Sidebar/Item.vue +++ b/yudao-ui-admin/src/layout/components/Sidebar/Item.vue @@ -21,7 +21,11 @@ export default { } if (title) { - vnodes.push({(title)}) + if (title.length > 5) { + vnodes.push({(title)}) + } else { + vnodes.push({(title)}) + } } return vnodes }