opentiny / opentiny/tiny-engine
🐛 [Bug]:使用axios工具包设计器画布中this.utils.axios报错,实际出码正常
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
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
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