Avoided redundant navigation to current location: “xxx“.

描述:点击按钮进行跳转时,路由为当前路由,再次点击报错java 解决方法:this 在router的index.js文件中添加 const originalPush:any = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call(this,
相关文章
相关标签/搜索