摘要: 1.重定向的地址不需要接收参数 const routes = [ { path: '/', redirect: '/index'}, { path: '/index', component: index } ] 把"/"重定向到"/index" 2.重定向的地址需要接收参数然而没有传参 不会改变地址 阅读全文