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

qiankun微前端使用KeepAlive刷新后状态有误 #268

Open
Julia95Qian opened this issue Apr 18, 2023 · 0 comments
Open

qiankun微前端使用KeepAlive刷新后状态有误 #268

Julia95Qian opened this issue Apr 18, 2023 · 0 comments

Comments

@Julia95Qian
Copy link

问题描述:
引用qiankun,在slaveapp的BasicLayout初始化PermissionContext用于控制页面子元素的权限;在uViewShell中useContext获取权限只读属性,状态正确;在uViewButton中useContext获取权限只读属性,状态错误。
层级关系如下:

  • BasicLayout: true[Provider]
    -- uViewShell: true [Consumer]
    --- uViewButton: false[Consumer]
    主应用页面:
    image
    子应用页面:
    image
    点击button跳转子应用的子模块:button中初始状态正确
    image
    点击F5刷新页面:button中状态错误
    image

最简实现代码:
mainapp.zip
slaveapp.zip

@Julia95Qian Julia95Qian changed the title qiankun微应用使用KeepAlive刷新后状态有误 qiankun微前端使用KeepAlive刷新后状态有误 Apr 19, 2023
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

No branches or pull requests

1 participant