vue-router的重定向是通过routes配置来完成的:

const router = new VueRouter({
routes:[
//方法一
{
path:'/',
name:'first',
redirect:'/news',
component:first
},
//方法二
{
path:'/',
name:'first',
redirect:{name:'news'},
component:first
},
{
path:'/news',
name:'news',
component:news,
}]
})

上边代码,使用redirect来重定向一个路由,值是可以是重定向的路径、也可以是路由的名字。。。