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]:1. 数据源接口请求成功,控制台报错,请求结果里不展示请求结果 2.页面表格绑定数据源,不展示数据 #845

Open
bailihao123 opened this issue Oct 8, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@bailihao123
Copy link

Environment

windows Google浏览器

Version

18.19.0

Version

最新的代码

Link to minimal reproduction

329ddbae06b484db7cca590247d9574
d62e1232ff8ad3b38b164b5cd8d38fa

Step to reproduce

按照操作文档操作
1.数据源接口发送请求后接口请求成功,控制台报错,请求结果窗口没有展示请求结果
2.新建一个空白表格页面,collection使用数据源,表格不渲染数据

What is expected

No response

What is actually happening

No response

What is your project name

tiny-engine

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

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


Title: 🐛 [Bug]: 1. The data source interface request is successful, the console reports an error, and the request result is not displayed in the request result. 2. The page table is bound to the data source, and the data is not displayed.

@chilingling
Copy link
Member

  1. 数据源接口请求成功,控制台报错的问题。按照您所说的操作步骤,并未复现。

操作步骤:
a. 填写请求接口:https://jsonplaceholder.typicode.com/todos/1,请求方式为 GET
b. 填写请求参数为 {}
c. 在请求结果输入框中,可以看到请求结果(位于请求参数下方)。控制台不报错

image

  1. 请求结果里不展示请求结果

当前只复现了一种场景,并已经提交PR: #847 ,麻烦确认是否与您所遇到的场景一致。如果还有额外的场景导致无法填充请求结果,请继续反馈。

  1. 页面表格绑定数据源,不展示数据

当前的画布以及页面预览,使用的都是 mock 数据,并未请求真正的接口进行展示数据。
如果需要连接真正的数据,可以使用出码功能。或者直接基于我们的版本进行改造。

@Issues-translate-bot
Copy link

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


  1. The data source interface request is successful but the console reports an error. Following the steps you mentioned, it didn't happen again.

Operation steps:
a. Fill in the request interface: https://jsonplaceholder.typicode.com/todos/1, and the request method is GET
b. Fill in the request parameters as {}
c. In the request result input box, you can see the request result (located below the request parameters). The console does not report an error

image

  1. The request results are not displayed in the request results.

Currently, only one scenario has been reproduced and PR has been submitted: #847. Please confirm whether it is consistent with the scenario you encountered. If there are additional scenarios that prevent the request results from being populated, please continue to report back.

  1. The page table is bound to the data source and does not display data.

The current canvas and page preview use mock data and do not request a real interface to display data.
If you need to connect real data, you can use the decoding function. Or modify it directly based on our version.

@chilingling chilingling self-assigned this Oct 17, 2024
@chilingling chilingling added the bug Something isn't working label Oct 17, 2024
@IKEYCY
Copy link

IKEYCY commented Nov 5, 2024

区块调用了接口,该区块无法单独导出使用

@Issues-translate-bot
Copy link

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


The block calls the interface, and the block cannot be exported and used separately.

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

4 participants