vue路由跳转同一个路由多次点击出现以下报错
解决办法
在router/index.js页面添加
const VueRouterPush = Router.prototype.push
Router.prototype.push = function push (to) {
return VueRouterPush.call(this, to).catch(err => err)
}
Navigating to current location ("/threeFloor") is not allowed
最新推荐文章于 2024-04-04 13:22:21 发布