feat: 流式布局点击一级菜单定位到子路由
This commit is contained in:
@@ -17,7 +17,7 @@ export default {
|
||||
// 要代理的地址
|
||||
// http://192.168.1.231:48080 伟强
|
||||
// https://petshy.tashowz.com/
|
||||
target: 'http://192.168.1.231:48080/',
|
||||
target: 'https://petshy.tashowz.com/',
|
||||
// 配置了这个可以从 http 代理到 https
|
||||
// 依赖 origin 的功能可能需要这个,比如 cookie
|
||||
changeOrigin: true,
|
||||
|
||||
@@ -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