Skip to content

用<a href='#'>封装的button组件,点击时路由在ie9上表现与ie>=10以及chrome上表现不一致 #1929

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

Closed
mygaochunming opened this issue Dec 8, 2017 · 2 comments

Comments

@mygaochunming
Copy link

mygaochunming commented Dec 8, 2017

Version

3.0.1

Reproduction link

https://github.com/mygaochunming/vue-router-bug

Steps to reproduce

运行“重现链接”中的“项目”,
1、点击“/foo”,下面显示/foo;
2、点击“/bar”,下面显示/bar;
3、点击“href="#"”,下面还是显示/bar(chrome,ie>=10),下面为“空”(ie=9)

What is expected?

在ie9下也显示/bar

What is actually happening?

显示为空


在项目中button组件是用<a href="#" >封装的。项目在chrome或者ie>=10上表现没有问题,但在ie9上,每当点击button组件时,路由就会重定向到path: “/”而清空router-view组件中的内容。

@posva
Copy link
Member

posva commented Dec 8, 2017

Adding an anchor to the page should not change the route. You may want to check #1911

@posva posva closed this as completed Dec 8, 2017
@mygaochunming
Copy link
Author

@posva I come back to say thanks!

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

No branches or pull requests

2 participants