1. 報錯信息
這個報錯不影響功能,看着不舒服,就解決掉

2. 解決辦法
在main.js添加下面幾句話
import Router from 'vue-router'
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
成功解決
