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

集成umi3.5项目为子应用,子应用需要登录,如何在主应用中登录上去后子应用不需要登录了 #1440

Open
LilianShi opened this issue Nov 11, 2024 · 2 comments
Labels
Need Reproduction 需要复现步骤

Comments

@LilianShi
Copy link

LilianShi commented Nov 11, 2024

问题描述

问题的具体描述

复现步骤

1.用vue3+vite做主应用
2.主应用中左侧菜单通过路由打开umi3.5微应用,怎么统一登录状态,进入微应用的时候不需要登录了

上传截图

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

复现仓库

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

环境信息

  • micro-app版本:
  • 主应用前端框架&版本:
  • 子应用前端框架&版本:
  • 构建工具&版本:
@122504387
Copy link

122504387 commented Dec 19, 2024

<micro-app
name="appname-jd"
iframe
:url="url"
:data="microAppData"
disable-patch-request
@created="handleCreate"
@beforemount="handleBeforeMount"
@mounted="handleMount"
@unmount="handleUnmount"
@error="handleError"
@Datachange="handleDataChange"
>
this.microAppData = { userInfo };

你可以主应用传给子应用用户信息

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

Hello @LilianShi. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @LilianShi, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 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

3 participants