// Solve the error reported by repeatedly clicking the navigation route
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => err)
}
Vue.use(VueRouter)
Copy directly to router.js. When pasting, pay attention to the execution sequence. This section is placed in front of new vuerouter