类似于这种的router的报错: image.png 解决方法如下: this.$router.push(path).catch(err => {err}); 如果觉得每一个push后面都加catch比较麻烦,建议封装成一下。