Skip to content

[bug] 子菜单有 icon 时文字和 icon 没有间距 #1142

@ngxlua

Description

@ngxlua

代码复现 ( 130行新增一个 icon ):

112 export const asyncRouterMap = [ 113 { 114 path: '/permission', 115 component: Layout, 116 redirect: '/permission/index', 117 alwaysShow: true, // will always show the root menu 118 meta: { 119 title: 'permission', 120 icon: 'lock', 121 roles: ['admin', 'editor'] // you can set roles in root nav 122 }, 123 children: [ 124 { 125 path: 'page', 126 component: () => import('@/views/permission/page'), 127 name: 'PagePermission', 128 meta: { 129 title: 'pagePermission', 130 icon: 'lock', 131 roles: ['admin'] // or you can only set roles in sub nav 132 } 

显示如下:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions