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

XRequest 无法正确的接收变量参数 #557

Open
TluffyX opened this issue Feb 25, 2025 · 4 comments
Open

XRequest 无法正确的接收变量参数 #557

TluffyX opened this issue Feb 25, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@TluffyX
Copy link

TluffyX commented Feb 25, 2025

重现步骤

在线示例链接:(必填)

步骤:

  1. 为dangerouslyApiKey和model提供新的变量参数
    2.发起后续对话请求
    3.仍然使用之前的dangerouslyApiKey和model

当前行为

No response

预期行为

No response

上下文

No response

版本

1.0.5

您在哪些浏览器上遇到了这个问题?

Chrome

@TluffyX TluffyX added the bug Something isn't working label Feb 25, 2025
Copy link

在 ant-design/x 的问题库中,我找到了一个与您描述的问题相同的条目:Issue #557 - XRequest 无法正确的接收变量参数。目前,这个问题还没有得到响应。

为了帮助您解决这个问题,您可以尝试以下步骤:

  1. 检查代码实现:确保在代码中正确地传递了 dangerouslyApiKeymodel 参数。
  2. 调试日志:在代码中添加日志,检查在请求发起时,参数是否被正确地传递和接收。
  3. 更新版本:确认您使用的是最新版本的 ant-design/x,可能在更新中已经修复了此问题。

如果这些步骤无法解决问题,建议您在 GitHub 上关注该问题的进展,或者提供更多的上下文信息以帮助开发者更好地理解和解决问题。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@lurrix-lige
Copy link

lurrix-lige commented Feb 26, 2025

现在可以确定dangerouslyApiKey的封装的不是如下格式:'Authorization': Bearer ${API_KEY[0].value}, 导致401

@Agr-0Z
Copy link

Agr-0Z commented Mar 13, 2025

遇到了同样的问题

Image 我写了两个重复的页面,其中只有dangerouslyApiKey的值是不一样的,也是写死的状态并没有使用变量赋值,也仍然使用的是之前的值

@lurrix-lige
Copy link

lurrix-lige commented Mar 20, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants