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

子应用刷新页面失败 #1214

Open
JackFeng7 opened this issue May 13, 2024 · 2 comments
Open

子应用刷新页面失败 #1214

JackFeng7 opened this issue May 13, 2024 · 2 comments
Labels
common common question

Comments

@JackFeng7
Copy link

问题描述

问题的具体描述
子应用window.location.reload失效

复现步骤

1.在组件内写上时间戳渲染到页面
2.点击按钮window.location.reload()
3. 页面的时间戳没有更新

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。

环境信息

  • micro-app版本:1.0.0-rc.5
  • 主应用前端框架&版本:react18
  • 子应用前端框架&版本:react18
  • 构建工具&版本:vite 5.2.0
@JackFeng7
Copy link
Author

子应用window.location.reload没有效果,也没有刷新子应用。但是可以使用window.top.window.location.reload可以实现刷新父应用,以达到刷新应用。

希望可以达到子应用刷新自身的效果

@lilu0826
Copy link

@bailicangdu bailicangdu added the common common question label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common common question
Projects
None yet
Development

No branches or pull requests

3 participants