解决vue项目双击路由导航报错 "Navigating to current location (XXX) is not allowed"

双击或者连续点击路由导航的时候,发现报错:vue "Navigating to current location (XXX) is not allowed" 缘由是:在路由里面添加了相同的路由 解决方案是: 咱们能够重写路由的push方法 在src/router/index.js 里面import Router from 'vue-router’下 写入下面方法便可web /** * 重写路由的
相关文章
相关标签/搜索