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

How to get a correct href right away [router.afterEach] #1656

Closed
yingyuk opened this issue Jul 31, 2017 · 2 comments
Closed

How to get a correct href right away [router.afterEach] #1656

yingyuk opened this issue Jul 31, 2017 · 2 comments

Comments

@yingyuk
Copy link

yingyuk commented Jul 31, 2017

Version

2.7.0

Reproduction link

https://jsfiddle.net/6rzLab69/1/

Steps to reproduce

click button

What is expected?

after first click,
window.location.href is https://fiddle.jshell.net/home?index=1;

What is actually happening?

after first click
but window.location.href is https://fiddle.jshell.net/home;


after first click
router.query == { index: 1 };
but window.location.href is https://fiddle.jshell.net/home;
setTimeout output is https://fiddle.jshell.net/home?index=1
Promise.resolve output is https://fiddle.jshell.net/home?index=1

@posva
Copy link
Member

posva commented Jul 31, 2017

Dup of #1197

@posva posva closed this as completed Jul 31, 2017
@sojuker
Copy link

sojuker commented Aug 30, 2017

meeting the same condition

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

3 participants