1 router.config.js自定义配置路由
this.$router.push({ path: '/cooperation' }); //跳转
{
path: '/cooperation',
redirect: '/cooperation/index',
component: TabLayout,
meta: { title: '询单情况' },
children:[
{
path: '/cooperation',
name: 'cooperation',
component: () => import('@/views/jeecg/resource/poolManager/cooperation'),
meta: { title: '询单情况', icon: 'profile', permission: [ 'profile' ] },
}
]
},
2 jeecg 菜单配置获取路由
/resource/poolManager/cooperation
菜单路径 斜杠 / 替换成 -
this.$router.push({name:'resource-poolManager-cooperation'}) //跳转路由
