vue的路由重复点击报错

在这里插入图片描述

在 main里面 加上

	const originalPush = Router.prototype.push
	Router.prototype.push = function push(location) {
	  return originalPush.call(this, location).catch(err => err)
	}
发布了76 篇原创文章 · 获赞 8 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_43453916/article/details/102486421