// 解决重复点击路由报错
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch((err) => err)
}
NavigationDuplicated: Avoided redundant navigation to current location: “/“. 解决路由重复点击
最新推荐文章于 2024-07-24 17:00:05 发布