Open langyjn opened 1 month ago
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: Data source, the data format and code logic of code output and preview are inconsistent
当前页面预览数据源对接的是静态 mock 数据。出码数据源对接的是接口配置的,会请求接口拿到数据。 原因是页面预览时,业务方配置的接口请求可能会造成跨域。
后续可能规划: 提供拓展配置,解决跨域相关问题,让页面预览真正请求接口数据。(或者提供配置项,配置请求接口数据或者是返回 mock 数据)
如果您有更好的建议,欢迎反馈或者提PR。感谢对 TinyEngine开源的贡献 @langyjn
Bot detected the issue body's language is not English, translate it automatically.
The current page preview data source is connected to static mock data. The decoding data source is connected to the interface configuration and will request the interface to get the data. The reason is that when the page is previewed, the interface request configured by the business party may cause cross-domain requests.
Possible follow-up plans: Provide extended configuration to solve cross-domain related issues and allow page preview to truly request interface data. (Or provide configuration items, configure request interface data or return mock data)
If you have better suggestions, please provide feedback or PR. Thanks for your contribution to TinyEngine open source @langyjn
Environment
chrome
Version
latest
Version
latest
Link to minimal reproduction
none
Step to reproduce
最后导致代码不一致产生错误
What is expected
No response
What is actually happening
No response
What is your project name
tiny-engine develop
Any additional comments (optional)
No response