请问下我如何才能直接访问/render2这个路由呢?
const routes = [{
path: '/',
redirect: '/index'
}, {
path: '/index',
component: Index,
meta: { keepAlive: true },
children: [{
path: '/preview',
component: PreView,
children: [{
path: '/render2',
component: render2
}]
}]
}, {
path: '/render2',
component: render2
}]
由于配置了
`children: [{
path: '/render2',
component: render2
}]`
每次都访问到/preview/render2去了
如何才能既能访问/preview/render2
又能直接访问/render2呢?
改为