From d1053d55adf8714e9c5ec29a07d653af7f8fe065 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 6 Jul 2022 09:11:34 +0800 Subject: [PATCH] =?UTF-8?q?v3.8.2=20=E4=BC=98=E5=8C=96=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E8=BF=87=E9=95=BF=E6=82=AC=E5=81=9C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/layout/components/Sidebar/Item.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin/src/layout/components/Sidebar/Item.vue b/yudao-ui-admin/src/layout/components/Sidebar/Item.vue index b515f6159a..be3285dfb3 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 }