From a8377f8d4572947424a9783ad3bb7b6a80d4262e Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 28 May 2024 12:19:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=81=AB?= =?UTF-8?q?=E7=8B=90=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=AD=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=8A=98=E5=8F=A0=E5=90=8E=EF=BC=8C=E6=96=87=E5=AD=97=E8=B6=85?= =?UTF-8?q?=E5=87=BA=E6=9C=AA=E9=9A=90=E8=97=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/zh-CN.yaml | 2 +- src/layout/components/lay-sidebar/components/SidebarItem.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index 086ca107f6..0412b0ff86 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -119,7 +119,7 @@ menus: pureMenu1-2-1: 菜单1-2-1 pureMenu1-2-2: 菜单1-2-2 pureMenu1-3: 菜单1-3 - pureMenu2: 菜单2 + pureMenu2: 菜单二 purePermission: 权限管理 purePermissionPage: 页面权限 purePermissionButton: 按钮权限 diff --git a/src/layout/components/lay-sidebar/components/SidebarItem.vue b/src/layout/components/lay-sidebar/components/SidebarItem.vue index e664ce06ed..cffa67713e 100644 --- a/src/layout/components/lay-sidebar/components/SidebarItem.vue +++ b/src/layout/components/lay-sidebar/components/SidebarItem.vue @@ -145,7 +145,7 @@ function resolvePath(routePath) { item?.pathList?.length === 2) " truncated - class="!w-full !px-4 !text-inherit" + class="!w-full !pl-4 !text-inherit" > {{ transformI18n(onlyOneChild.meta.title) }} @@ -199,7 +199,7 @@ function resolvePath(routePath) { :class="{ '!w-full': true, '!text-inherit': true, - '!px-4': + '!pl-4': layout !== 'horizontal' && isCollapse && !toRaw(item.meta.icon) &&