1. import Vue from 'vue'
    2. import Router from 'vue-router'
    3. const originalPush = Router.prototype.push;
    4. Router.prototype.push = function push(location) {
    5. return originalPush.call(this, location).catch(err => err)
    6. };
    7. Vue.use(Router)

    image.png