重复点击某个路由
会报一个这样的错
然后再/router/index.js中加入这个
// 解决重复跳转路由
const VueRouterPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (to) {
return VueRouterPush.call(this, to).catch(err => err)
}
然后就可以解决了
重复点击某个路由
会报一个这样的错
然后再/router/index.js中加入这个
// 解决重复跳转路由
const VueRouterPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (to) {
return VueRouterPush.call(this, to).catch(err => err)
}
然后就可以解决了