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

页面 replace('/404') 跳转时 报错Cannot read property 'classList' of null #3080

Closed
vdapk opened this issue Dec 24, 2019 · 2 comments
Closed

Comments

@vdapk
Copy link

@vdapk vdapk commented Dec 24, 2019

Version

3.1.3

Reproduction link

https://vdapk.com

Steps to reproduce

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

What is expected?

修复

What is actually happening?

错误

@vdapk

This comment has been minimized.

Copy link
Author

@vdapk vdapk commented Dec 24, 2019

无论是replace还是push都会报同样的错

@posva

This comment has been minimized.

Copy link
Member

@posva posva commented Dec 24, 2019

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.
When reporting a bug, provide a runnable boiled down repro as specified in the issue helper

@posva posva 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.