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-link 会有问题 Cannot read property 'classList' of null #3079

Closed
vdapk opened this issue Dec 24, 2019 · 1 comment
Closed

Comments

@vdapk
Copy link

@vdapk vdapk commented Dec 24, 2019

/a 路由跳转到404了()通配符,然后整个页面渲染404 然后浏览器报TypeError: Cannot read property 'classList' of null 看字面意思应该是路由变化时会给对应的router-link添加class 但这时页面重渲染了 该a标签也不在了 所以出现这个错误,但奇怪的是,页面上也没有router-link to=""是通配符的,这个报错也不是每次都会触发

@vue-bot

This comment has been minimized.

Copy link

@vue-bot vue-bot commented Dec 24, 2019

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!


你好,你的 issue 不符合我们所要求的格式,因此已被自动关闭。为了确保每个 issue 都提供必需的相关信息,请务必使用我们的 Issue 向导 来创建新 issue,谢谢!

@vue-bot vue-bot closed this Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.