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

点击左侧菜单栏,路由更新了,但是页面没有及时的响应更新 #4213

Open
xiaojunsen opened this issue Dec 30, 2023 · 2 comments

Comments

@xiaojunsen
Copy link

Question(提问)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

  • Your OS:
  • Node.js version:
  • vue-element-admin version:
@jianghaodn
Copy link

我也是这个问题,路由更新,地址栏也更新 了,但是页面不更新。我监控了路由,监控到了路由变化就刷新页面,技术有限就只能用这个笨办法。然后又带来了新的问题:点了侧边栏路由都不变化。。

@jianghaodn
Copy link

刚才试了下,在layout/appMain.vue这个文件,在router-view上面加一个:key="$route.fullPath",页面就能正常加载了。我这试了下问题解决了。作者是加在component的上面

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