Vue solves the problem of repeated click navigation route error

// Solve the error reported by repeatedly clicking the navigation route
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
  return, location).catch(err => err)

Copy directly to router.js. When pasting, pay attention to the execution sequence. This section is placed in front of new vuerouter

Read More: