opentiny / opentiny/tiny-engine

🐛 [Bug]:使用axios工具包设计器画布中this.utils.axios报错,实际出码正常

Open
#1,715 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
2.8k
Forks
476
Avg merge
17h 35m
Merged PRs (30d)
1

Description

Environment

chrome

Version

2.8.0

Version

2.8.0

Link to minimal reproduction

Step to reproduce

在资源管理引入工具包 axios,使用 this.utils.axios 调用,在设计器画布中提示 axios undefined。

VM2016:11 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'post') at state.queryData (eval at aF (about:srcdoc:6:22580), <anonymous>:11:64) at Object.onSearch (eval at aF (about:srcdoc:6:22580), <anonymous>:13:18) at index.js:48262:81 at index.js:48210:16 at validateField (index.full.mjs:13142:46)

但出码到本地正常。

What is expected

预期在设计器画布中正常请求,不报错

What is actually happening

No response

What is your project name

TinyEngine

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

Reproduce the issue in Chrome with TinyEngine 2.8.0 by adding the axios toolkit through resource management and calling this.utils.axios in the designer canvas. Compare the canvas behavior with the generated local project, and consider the issue complete when the canvas request works without the axios undefined error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.