opentiny / opentiny/tiny-engine
🐛 [Bug]: 数据源(datasource),出码与预览的数据格式和代码逻辑不一致
Open
Nobody has claimed this yet.
enhancement
question
- Dominant language
- Vue
- Stars
- 2.8k
- Forks
- 476
- Avg merge
- 17h 35m
- Merged PRs (30d)
- 1
Description
Environment
chrome
Version
latest
Version
latest
Link to minimal reproduction
none
Step to reproduce
- 预览时datasource的代码,返回格式是{ code: '', msg: '', data }
- 出码后,如果使用datasource静态数据,返回格式是 data
最后导致代码不一致产生错误
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the datasource behavior described for preview and generated code in tiny-engine develop, comparing the returned formats for static datasource data. Trace the preview and code-generation entry points to identify where their formats diverge; done means both paths use the same format without the reported error.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100