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

fix: 父应用二级目录项目无法正常加载子应用 #1037

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

xuhongbo
Copy link
Contributor

@xuhongbo xuhongbo commented Jan 2, 2024

由于部分项目的父应用并未放在根路径下,所以会有可能存在无法访问的问题
例如:
父应用为:https://www.github.com/index.html 这样没有问题
但是如果父应用为: https://www.github.com/next/index.html 没有在根域名下的,包含二级目录的项目会存在问题

@bailicangdu
Copy link
Member

thanks👍

@bailicangdu
Copy link
Member

1.0.0-rc.4版本已支持,使用方式:

import microApp from '@micro-zoe/micro-app'

microApp.start({
  iframeSrc: xxx, // 设置iframe沙箱中iframe的src地址,默认为子应用所在页面地址
})

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.

None yet

2 participants