记录一下vue-router导航守卫参数next的一些用法
记录一下vue-router导航守卫参数next的一些用法
next代表路由跳转
假设从/index 用$router.push("/foo") 跳转到foo页面
next()
console.log(this.$route.path) // /foo
// 如果反过来写
console.log(this.$route.path) // /index
next()
记录一下vue-router导航守卫参数next的一些用法
https://blog.jishu6.com:18080//archives/vue-router-next