六.router和route的区别

113 阅读1分钟
  • router是路由实例对象,用来进行页面跳转router.push、后退router.go(-1)
  • route是代表的当前路由规则 拿参数 获取当前路由信息