From 980df9f28ab644d20ea73e39665f3d61f00cf94e Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期一, 23 十二月 2024 14:45:05 +0800 Subject: [PATCH] 菜单折叠后图标间距问题 --- Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue b/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue index 170ffa4..3762f5b 100644 --- a/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue +++ b/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue @@ -14,7 +14,7 @@ :key="item[labelKey]" :index="item[pathKey]"> <template slot="title"> - <i :class="item[iconKey]"></i> + <i :class="item[iconKey]" style="margin-right: 10px"></i> <span slot="title" :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span> </template> @@ -24,7 +24,7 @@ :class="{'is-active':vaildActive(child)}" :index="child[pathKey],cindex" @click="open(child)"> - <i :class="child[iconKey]"></i> + <i :class="child[iconKey]" style="margin-right: 10px"></i> <span slot="title">{{ generateTitle(child) }}</span> </el-menu-item> <sidebar-item v-else @@ -125,6 +125,10 @@ } }, open(item) { + const query = { + ...item.query, + id:item.id + } if (this.screen <= 1) this.$store.commit("SET_COLLAPSE"); if (this.validIsOpen(item)) { window.open(item[this.pathKey]); @@ -136,7 +140,7 @@ name: item[this.labelKey], src: item[this.pathKey] }, item.meta), - query: item.query + query: query }); } } -- Gitblit v1.9.3