feat: 流式布局点击一级菜单定位到子路由

This commit is contained in:
2025-10-20 14:05:12 +08:00
parent 5163e4dee8
commit 1e5ea1879b
5 changed files with 138 additions and 178 deletions

View File

@@ -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,