opentiny / tiny-engine

TinyEngine is a low-code engine based on which you can build or develop low-code platforms in different domains/TinyEngine是一个低代码引擎,基于这个引擎可以构建或者开发出不同领域的低代码平台
https://opentiny.design/tiny-engine
MIT License
1.88k stars 289 forks source link

🐛 [Bug]: 编辑器新建区块,不选择‘区块分类’,编辑保存后,无法在编辑器的‘区块管理’查看新保存的区块 #867

Open Lymanli opened 5 hours ago

Lymanli commented 5 hours ago

Environment

edge 130,win10 22H2,node 18.20.3

Version

node 18.20.3,MySQL 8.4.0

Version

当前使用的提交历史版本 8507b656833732d86265948ff366a0d392f21cd2

Link to minimal reproduction

切换区块管理,点击新建区块,填入区块名称、区块id后,点击确定 image

拖动文本组件,修改文本显示内容,点击保存按钮 image

提示新建区块成功 image

数据库中已有新区块Test11Comp image

Step to reproduce

刷新页面,重新加载区块信息,无刚刚保存的Test11Comp区块 image

新建区块Test12Comp image

编辑保存Test12Comp image

刷新页面重新请求区块数据后,能看到新建的Test12Comp image

What is expected

如果区块分类不是必填,希望新建区块时,填入区块名称、区块id后,点确定后编辑的区块,在保存后可以在区块管理中显示。 如果区块分类是必填,希望新建区块没有填入区块分类时,提示必填区块分类。

What is actually happening

新建区块时不选择区块分类,保存存入数据库后,不能在区块管理中显示。

What is your project name

tiny-engine

Any additional comments (optional)

No response

Issues-translate-bot commented 5 hours ago

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: When creating a new block in the editor, do not select ‘Block Classification’. After editing and saving, the newly saved block cannot be viewed in the ‘Block Management’ of the editor.