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 }); } }