diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index 086ca107f..0412b0ff8 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 e664ce06e..cffa67713 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) &&