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

🐛[BUG] 在全局 ProConfigProvider 中配置的 token 不生效 #7171

Closed
hungtcs opened this issue Jun 3, 2023 · 4 comments
Closed

🐛[BUG] 在全局 ProConfigProvider 中配置的 token 不生效 #7171

hungtcs opened this issue Jun 3, 2023 · 4 comments

Comments

@hungtcs
Copy link

hungtcs commented Jun 3, 2023

🐛 bug 描述

在全局 ProConfigProvider 中配置的 token 不生效,以 ProLayout 为例,必须在 ProLayout 的 props 中配置 token 才会生效,全局配置不生效。

📷 复现步骤

使用 ProConfigProvider 在最外层包裹所有组件,并配置 token。

🏞 期望结果

token 生效。

💻 复现代码

https://codesandbox.io/s/ji-chu-shi-yong-forked-pio434?file=/App.tsx

© 版本信息

  • ProComponents 版本: 2.5.5
  • 浏览器环境 Chrome
  • 开发环境 mac OS

🚑 其他信息

可能是此处覆盖了全局配置,但是没有从全局配置中继承。

<ProConfigProvider
autoClearCache
{...darkProps}
token={props.token}
prefixCls={props.prefixCls}
>

@github-actions
Copy link

github-actions bot commented Jun 3, 2023

当前 Issue 未检测到标题,请规范填写,谢谢!

The title of the current issue is not detected, please fill in according to the specifications, thank you!

@github-actions github-actions bot closed this as completed Jun 3, 2023
@hungtcs hungtcs changed the title 🐛[BUG] 🐛[BUG] 在全局 ProConfigProvider 中配置的 token 不生效 Jun 4, 2023
@MiniSuperDev
Copy link

I see the same error, please reopen :)

@zhengtan2003
Copy link

遇到相同问题了

@xuyanzhuqing
Copy link

一样

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

4 participants