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

qiankun +vue 多页签问题 #2871

Open
chenxukf103 opened this issue Dec 28, 2023 · 1 comment
Open

qiankun +vue 多页签问题 #2871

chenxukf103 opened this issue Dec 28, 2023 · 1 comment

Comments

@chenxukf103
Copy link

chenxukf103 commented Dec 28, 2023

Background

采用缓存的的方案实现多页签(参考#361),但是遇到了一个很奇怪的问题,主应用有个路由c,子应用有两个路由a,b,a路由跳转到b,切换到路由c,再回到b页签,再关闭b页签回到a,再从a跳转到b,这个时候会发现this.$router.push({name:'b',params:{'a':'1'}})的params丢失了,获取不到,子应用所有的push的params都是无法获取到的

Proposal

Describe the solution you'd like, better to provide some pseudo code.

Additional context

vue2.6
vue-router3.6.5

@peterlevel1
Copy link
Contributor

peterlevel1 commented May 5, 2024

#361貌似还有一个缓存问题,复现步骤:

  • 关闭 子应用 的一个tab, 跳回主应用
  • 再在侧边栏或者别的地方打开刚关闭的子应用路由
  • 结果:被关闭的路由神奇的复活了

这个问题和你描述的问题有些类似

同问,是不是有比较完美的解决方案

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