From c9ee8d8cc33e47aec4df0e6b8459931a61662385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Tue, 15 Mar 2022 16:55:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8F=9C=E5=8D=95=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=BF=87=E9=95=BF=E6=82=AC=E5=81=9C=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Vue/src/layout/components/Sidebar/Item.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ZR.Vue/src/layout/components/Sidebar/Item.vue b/ZR.Vue/src/layout/components/Sidebar/Item.vue index b515f61..0b584e1 100644 --- a/ZR.Vue/src/layout/components/Sidebar/Item.vue +++ b/ZR.Vue/src/layout/components/Sidebar/Item.vue @@ -17,11 +17,19 @@ export default { const vnodes = [] if (icon) { - vnodes.push() + vnodes.push() } if (title) { - vnodes.push({(title)}) + if (title.length > 5) { + vnodes.push( + + {title} + + ) + } else { + vnodes.push({title}) + } } return vnodes }