Skip to content
New issue

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

移除 router.push/replace 中的catch #57

Closed
wants to merge 1 commit into from

Conversation

a365344743s
Copy link

移除 router.push/replace �中的catch,因为在 vue-router v3.1 以后,使用带参数的next,永远会throw error,详细说明可以看这里

@hezhongfeng
Copy link
Owner

这么改写了之后,错误信息不catch,那么就会暴露出来错误信息,会给人困扰,这里也是有人反馈后进行了catch的处理,#13

@a365344743s
Copy link
Author

了解,但是打印出来也会造成困惑,也许应该增加一个说明

@hezhongfeng
Copy link
Owner

是不会打印出来的,因为多余的报错是报的undefined,我已经进行了过滤处理了这个问题你了解的话就可以关闭这个PR了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants