Modify the left navigation bar

  1. 在config里面添加路由
    {
    name: 'member',
    icon: 'usergroup-add',
    path: '/member',
    routes: [
    {
    name: 'management',
    icon: 'usergroup-add',
    path: '/member/management',
    component: './member/management',
    }
    ],
    },
  2. In the page relative to the inside pages member / management / index.jsx

  3. Modify the name: src / the locales / zh-CN / menu.js
    'menu.member': 'Membership Management',
    'menu.member.management': 'Membership Management'

4. Modify the chart:
config / Modify icon inside the config.js properties: component selected from a component library name, input icon component name, rather than label references
correctly: icon: 'usergroup-add' ,
the error:

Guess you like

Origin www.cnblogs.com/taoist123/p/11681410.html