在当前这个页面下, 下面那一大块是一个router-view
浏览器中的地址栏是:
我希望做到的是点击详情 然后跳转到/audit/records/detail?id=...
上面依然有 待审核 和 审核记录的 小标题 但是下面的部分从"已审核"开始 是一个新的
页面,里面是审核详情,
这个应该怎么实现?或者说这个router-view应该放在哪个页面中?是不是还要控制不同router-view的显示隐藏?
附router.js:
mode: 'history',
base: process.env.BASE_URL,
routes: [
{
path: '/',
name: 'index',
component: index,
// meta: { requiresAuth: true },
redirect: 'audit',
children: [
{
path: 'audit',
component: audit,
redirect: 'audit/auditing',
children: [
{
path: 'auditing',
component: auditing
},
{
path: 'records',
component: records,
children: [
{
path: 'auditDetail',
component: auditDetail
}
]
}
]
},
说一下我的几种想法吧
target="_blank"
,只是这样就与单页面应用这个理念不相符了