feat: 流式布局点击一级菜单定位到子路由
This commit is contained in:
@@ -40,11 +40,43 @@ export default [
|
||||
routes: [
|
||||
{
|
||||
name: '订单管理',
|
||||
path: '/trade',
|
||||
path: '/trade/order',
|
||||
component: './trade/order/index',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
path: '/prod1',
|
||||
name: '商品管理1',
|
||||
routes: [
|
||||
{
|
||||
path: '', // 空路径,匹配 /prod
|
||||
redirect: 'list', // 相对路径重定向
|
||||
},
|
||||
{
|
||||
name: '商品1',
|
||||
path: '/prod1/list',
|
||||
component: './prod/list/index',
|
||||
},
|
||||
{
|
||||
name: '类目管理',
|
||||
path: '/prod1/category',
|
||||
component: './prod/category/index',
|
||||
},
|
||||
],
|
||||
},
|
||||
// {
|
||||
// path: "/system",
|
||||
// name: "系统管理",
|
||||
// routes: [
|
||||
// {
|
||||
// name: "商品管理",
|
||||
// path: "/system/menu",
|
||||
// component: "./system/menu/index",
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
component: '404',
|
||||
layout: false,
|
||||
|
||||
Reference in New Issue
Block a user