opentiny / opentiny/tiny-engine

🐛 [Bug]: 数据源(datasource),出码与预览的数据格式和代码逻辑不一致

Open
#772 3 comments 0 reactions 0 assignees View on GitHub

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
  1. 预览时datasource的代码,返回格式是{ code: '', msg: '', data }
    1
  2. 出码后,如果使用datasource静态数据,返回格式是 data
    2

最后导致代码不一致产生错误

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.