Skip to content

fix: 当子应用location.replace到其他域名时,改为渲染到另一个iframe中#575

Open
Xusenbiao wants to merge 1 commit intoTencent:masterfrom
Xusenbiao:fix/replace-render-in-iframe
Open

fix: 当子应用location.replace到其他域名时,改为渲染到另一个iframe中#575
Xusenbiao wants to merge 1 commit intoTencent:masterfrom
Xusenbiao:fix/replace-render-in-iframe

Conversation

@Xusenbiao
Copy link
Copy Markdown
Contributor

  • 提交符合commit规范
  • npm run test通过
详细描述

目前,当子应用通过location.replace跳转其他域名地址,新地址下的内容会在主应用的同域iframe中加载,创建的节点也会插到同域iframe中,shadowDom中则依然是跳转前的子应用内容,无法正常交互。

此提交针对这种场景,将子应用自动转到一个新的iframe中加载,确保子应用显示及交互正常。

  • 特性
  • 关联issue

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

Successfully merging this pull request may close these issues.

1 participant