Reason: add the same route in the route.
Solution:
Rewrite push method of routing
In src / router / index.js which import Router from 'vue-router' by writing to the following method
/** * 重写路由的push方法 */ const routerPush = Router.prototype.push Router.prototype.push = function push(location) { return routerPush.call(this, location).catch(error=> error) }