From 4ca953802c7715f36299664c624dde51561d8608 Mon Sep 17 00:00:00 2001 From: xuhongjie <1943105267@qq.com> Date: Wed, 28 May 2025 09:12:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E7=B3=BB=E7=BB=9F=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Sidebar/Logo.vue | 63 ++++++++++++++++---------- src/views/index.vue | 6 +-- 2 files changed, 41 insertions(+), 28 deletions(-) diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index b0e50eb..497dbcb 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -1,53 +1,64 @@ \ No newline at end of file + diff --git a/src/views/index.vue b/src/views/index.vue index 7c23741..f968c1b 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -27,7 +27,7 @@ class="menu-item" v-for="(item, index) in topMenus" :key="index" - @click="handleSelect(item.path)" + @click="handleSelect(item.path,item.meta.title)" >
@@ -74,7 +74,7 @@ const router = useRouter(); * 点击菜单 * @param key */ -function handleSelect(key) { +function handleSelect(key,title) { if (disableList.includes(key)) { proxy.$modal.msgWarning("功能开发中,敬请期待"); return; @@ -94,8 +94,8 @@ function handleSelect(key) { // 显示左侧联动菜单 const currentChildRoter = activeRoutes(key); appStore.toggleSideBarHide(false); - if (currentChildRoter.length > 0) { + proxy.$cache.local.set('systemName', title) router.push({ path: currentChildRoter[0].path }); } }