-
Notifications
You must be signed in to change notification settings - Fork 574
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
microApp.addDataListener 不触发 #1409
Comments
有没有什么补偿方案,长期使用这个版本的微前端框架,最好不升级 |
子应用跳转详情页,再在主应用点击到列表页就不会跳转 |
Hello @mathYang1224. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository. |
Since the issue was labeled with |
Describe the bug
To Reproduce
// 主应用
// name 为变量
microApp.setData(name, data)
// 子应用
// 监听基座下发的数据变化
window.microApp.addDataListener((data) => {
// 当基座下发跳转指令时进行跳转
if (data.path) {
router.push(data.path)
}
})
Environment
The text was updated successfully, but these errors were encountered: