左侧菜单新添加功能后如何配置路由?

Saber 未结 1 347
wuzhenlang
wuzhenlang 剑童 2023-03-31 23:59

image.png

1680278256415918.png

1条回答
  • 参考下这个

    {

      path: '/test',

      component: Layout,

      redirect: '/test/index',

      children: [{

        path: 'index',

        name: '测试页',

        meta: {

          i18n: 'test'

        },

        component: () =>

          import( /* webpackChunkName: "views" */ '@/views/util/test')

      }


    0 讨论(0)
提交回复