diff --git a/ruoyi-ui/src/layout/components/Sidebar/Item.vue b/ruoyi-ui/src/layout/components/Sidebar/Item.vue index 1a99d63f..37214aa0 100644 --- a/ruoyi-ui/src/layout/components/Sidebar/Item.vue +++ b/ruoyi-ui/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 }