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
子应用点击浏览器返回按钮后直接卸载应用 #1194
Labels
Comments
就这种重定向的情况,有没有什么好的解决办法 |
浏览器返回是全局的,不分主应用或子应用。应该是返回时micro-app元素被删除导致子应用卸载 |
应该在返回后micro-app元素被卸载后又重新渲染,导致这种情况有很多,比如主应用中设置了:key或者其它情况。 |
那应该是重定向的问题,这种情况微前端解决不了,只能根据项目自行适配了 |
好的,谢谢。我试试看能不能重定向到主应用,再通过router.push跳转。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
复现步骤
1.主应用通过oauth2登录后重定向到子应用
2.子应用点击浏览器返回按钮会直接卸载当前子应用
上传截图
环境信息
The text was updated successfully, but these errors were encountered: