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

The page does not display correctly after changing the path #2245

Closed
mangoooooo opened this issue Jun 6, 2018 · 6 comments
Closed

The page does not display correctly after changing the path #2245

mangoooooo opened this issue Jun 6, 2018 · 6 comments

Comments

@mangoooooo
Copy link

mangoooooo commented Jun 6, 2018

Version

3.0.1

Reproduction link

https://codesandbox.io/s/9jr1zry2k4

Steps to reproduce

  1. click "to desinger home" then return, and then click "to designer detail"

  2. The detail page shows the content of the home page

  3. then refresh the detail page, it shows the correct content

What is expected?

shows the correct content

What is actually happening?

shows the wrong content


Please forgive me for my poor English

@posva
Copy link
Member

posva commented Jun 6, 2018

Put the star route (*) at the end otherwise it will pick-up every single route

@posva posva closed this as completed Jun 6, 2018
@mangoooooo
Copy link
Author

mangoooooo commented Jun 7, 2018

@posva
I have removed the code
{ path: "*", redirect: "/mall" }
But there is still a problem

link: https://codesandbox.io/s/9jr1zry2k4

@z1948296027
Copy link
Contributor

in my problem, route path changed,but the page did not change

@Virgil-N
Copy link

Virgil-N commented Nov 12, 2019

I have the same problem. I use history mode. Url is right, but component is not mounted, so my page contains nothing.

@Virgil-N
Copy link

我找到解决办法了,给嵌套组件添加一个只包含router-view的空父组件,哈哈!

@mangoooooo
Copy link
Author

更新到最新就没有这个问题了 #2930

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

4 participants