From c6548c167616731c1dc0a6009a52d9ae9a742f48 Mon Sep 17 00:00:00 2001 From: "DESKTOP-L29QSFC\\THINK" Date: Thu, 12 Sep 2024 15:45:09 +0800 Subject: [PATCH] up --- src/layout/components/Sidebar/Item.vue | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/layout/components/Sidebar/Item.vue b/src/layout/components/Sidebar/Item.vue index a1044b3..9eefc4c 100644 --- a/src/layout/components/Sidebar/Item.vue +++ b/src/layout/components/Sidebar/Item.vue @@ -36,18 +36,38 @@ export default { vnodes.push() } - if (title) { - vnodes.push({(title)}) + if (title) { + if(title.indexOf('-')>-1) { + + vnodes.push({(title.split('-')[0])}[{(title.split('-')[1])}]) + } + else{ + vnodes.push({(title)}) + } } return vnodes } } -