We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原因
解决方法
利用 AOP 切片,修改push方法
// 利用 AOP 解决 vue router 3.1.0+ 相同路由报错的问题 Router.prototype.push = function push (location, onResolve, onReject) { // 这一段是 Router.prototype.push 的源码,当跳转路由有还有要执行的cb时,执行这里 if (onResolve || onReject) { return originalRouterPush.call(this, location, onResolve, onReject) } // 接收住路由的报错,不显示 return originalRouterPush .call(this, location) .catch((error) => error) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
原因
解决方法
利用 AOP 切片,修改push方法
The text was updated successfully, but these errors were encountered: