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

fix: navigate to 404, the page will be blank #418

Merged
merged 2 commits into from
Jan 6, 2022
Merged

fix: navigate to 404, the page will be blank #418

merged 2 commits into from
Jan 6, 2022

Conversation

trueLoving
Copy link
Contributor

bug description

when I navigate 404, the page will be blank
error
.

reason

because when navigate to 404, the route.data will be null. However, route.data used many times
reason
We tried to get the property on null. So it throws an error.

solution

we can set route.data a default PageDate value to avoid getting the property on null.

finally

success

@yyx990803 yyx990803 merged commit a3bf52f into vuejs:main Jan 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants