opentiny/tiny-engine

🐛 [Bug]: 数据源中获取远程字段中的发送请求逻辑缺失,并且在发送过程中应该支持设置请求头,方便对于有权限校验等请求的支持

Closed this issue · 3 comments

Environment

Chrome120.0.6099.216(正式版本) (arm64)

Version

v16.20.2

Version

最新

Link to minimal reproduction

  • 新建数据源
  • 点击获取远程字段
  • 点击发送请求
    点击以后没有任何反应,查看源码,似乎缺少相关逻辑
    image
    image

Step to reproduce

  • 新建数据源
  • 点击获取远程字段
  • 点击发送请求
    点击以后没有任何反应,查看源码,似乎缺少相关逻辑
    image
    image

What is expected

  • 点击的时候能正常发送请求
  • 能否支持对请求头的设置

What is actually happening

No response

Any additional comments (optional)

No response

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: The send request logic in obtaining the remote field in the data source is missing, and the setting of request headers should be supported during the sending process to facilitate support for requests such as permission verification.

@CareyYangyy 请求头可以在willFetch函数中设置。
目前设置有问题,待PR合入后修复。
image