Vue的Router在使用this.$router.push(url)出现错误
Vue的Router在使用this.$router.push(url)出现错误Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/home/news”.错误如下解决办法在Vue项目的index.js项目中加入一下内容。const originalPush = Router.prototype.pushRouter.prototype.push = fu
原创
2021-07-12 22:45:07 ·
693 阅读 ·
0 评论