40.用组件话开发 重复点击报错 解决方法 methods: { itemClick() { this.$router.push(this.path).catch(err => err); } } 在点击事件后面加 catch( err => err) 重复点击后就 不会再报错了