類似于這種的router的報錯: image.png 解決方法如下: this.$router.push(path).catch(err => {err}); 如果覺得每一個push后面都加catch比較麻煩,建議封裝成一下。