列表详情按钮,点击后整个页面跳转至详情页面(顶部logo不变,spa页面),这个该怎么做?
详情按钮代码:
<p class="linkDetail"><router-link :to="'/top250/'+list.id">详情</router-link></p>
vue-router代码:
{
path: '/top250',
name: 'top250',
component: Top250,
children: [
{
path: '/top250/:id',
component: DetaiMovie
}
]
},
vue-router文档