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

未关闭
#1,715 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript
领域
frontend

调研方向

在 Chrome 中使用 TinyEngine 2.8.0,通过资源管理添加 axios toolkit,并在设计器画布中调用 this.utils.axios 来复现该问题。将画布的行为与生成的本地项目进行比较,当画布请求能够正常工作且不出现 axios undefined 错误时,即可认为该问题已完成。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Vue
星标
2.8k
派生
482
平均合并
14 天 8 小时
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

opentiny/tiny-engine 的其他 Issue

查看 opentiny/tiny-engine 的全部 Issue

相似的 Issue

更多 Web Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。