参数传递和重定向


参数传递

前端需要接受的参数(我们假设为id)

在路由中注册

页面传递参数







重定向

在路由中设置重定向

 {
          path: "/gohome",
          redirect: "/main"
  }

在main页面设置跳转链接