goto(path) {
this.$router.push(path)
}
在goto里面打印this.$route.path,路由跳转之后还没变 ,还是上一个页面的路由,在路由跳转之后页面渲染之后this.$route.path就是当前路由。
goto(path) {
this.$router.push(path)
}
在goto里面打印this.$route.path,路由跳转之后还没变 ,还是上一个页面的路由,在路由跳转之后页面渲染之后this.$route.path就是当前路由。