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

最新版本v1.0.0-rc.9,子应用无法通过location.search,获取micro-app标签url的查询参数 #1377

Open
tmxjiayou opened this issue Sep 20, 2024 · 4 comments
Labels
Need Reproduction 需要复现步骤

Comments

@tmxjiayou
Copy link

问题描述

最新版本v1.0.0-rc.9,子应用无法通过location.search,获取micro-app标签url的查询参数

复现步骤

  1. 在父应用中通过micro-app接入子应用, 并配置router-mode="pure",在子应用里通过$router.push路由跳转并带上query参数
    2.在子应用中无法通过子应用无法通过location.search,获取query参数,子应用里拿到的location好像是外层主应用

上传截图

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

复现仓库

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

环境信息

  • micro-app版本:v1.0.0-rc.9
  • 主应用前端框架&版本:vue2.6
  • 子应用前端框架&版本:vue2.6
  • 构建工具&版本:webpack5
@tmxjiayou
Copy link
Author

v1.0.0-rc.5版本是正常的,后面的版本在子应用里获取的location都是父应用的

@htfire
Copy link

htfire commented Sep 20, 2024

v1.0.0-rc.5版本是正常的,后面的版本在子应用里获取的location都是父应用的

我 v1.0.0-rc.5版本怎么获取的也是父应用的

@raoenhui
Copy link
Member

window.rawWindow试试

@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Oct 11, 2024
Copy link

Hello @tmxjiayou. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @tmxjiayou, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need Reproduction 需要复现步骤
Projects
None yet
Development

No branches or pull requests

4 participants