nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

是否能加一个可以设置自动生成路由树的"meta"对象的一个方法

Open langyuxiansheng opened this issue 5 years ago • 10 comments

What problem does this feature solve?

这个可以解决许多不必要的麻烦

What does the proposed changes look like?

官网的自定义路由也有不方便的地方, 设置路由树的 meta: { }

示例: const routes = [ { path: '/dashboard', name: 'dashboard', meta: { requireAuth: false, //菜单权限 title: '系统首页', //菜单名 icon: 'fa fa-bar-chart', //菜单图标 }, component: Layout, children: [{ path: 'welcome', meta: { title: '欢迎页', requireAuth: false }, component: Welcome }] }]

This feature request is available on Nuxt community (#c8457)

langyuxiansheng avatar Jan 12 '19 10:01 langyuxiansheng