用于显示ANTD中应用令牌的模态

发布于 2025-01-23 09:47:29 字数 111 浏览 1 评论 0原文

我正在创建一个应用程序,您可以在其中创建像Github中Pat代币一样的API令牌。我只想向他们展示一次。为了向他们展示,我正在使用模态组件。一旦完成为代币的API请求,我如何才能触发模态以显示令牌详细信息。

I am creating an application in which you can create API tokens just like PAT tokens in github. I want to show them just once. For showing them I am using a Modal component. How can I trigger the modal to show token details once the api request for generating token is completed.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

帅冕 2025-01-30 09:47:29
  1. 将以null初始化的状态
  2. 您可以创建一个将令牌创建时 ,您可以存储令牌的详细信息
    在状态下,
  3. 根据状态有条件地呈现模式。
  1. You can create a state that will be initialized as null
  2. When the token was created, you can store the details of the token
    in the state
  3. Render the modal conditionally based on the state.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文