摘要:
一个按钮绑定一个方法,方法是跳转到某个路由地址,当已经点击触发方法到该路由下的时候,再进行点击该按钮控制台就会报错,不会影响项目运行 解决方法: if(this.$route.path == '/bindingmodifica/newpassword'){ return '' }else{ this 阅读全文
摘要:
完整url可以用 window.location.href路由路径可以用 this.$route.path路由路径参数 this.$route.params 例如:/user/:id → /user/2044011030 → this.$route.params.id路由查询参数 this.$rou 阅读全文