router.beforeEach((to, from, next) => {
  // to 和 from 都是 路由信息对象
  
  // 这里的from.path就是上一步的url的hash值
})
Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐