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.98k stars 305 forks source link

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

Open Lymanli opened 1 month ago

Lymanli commented 1 month 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 1 month 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.

chilingling commented 1 month ago

您好,麻烦确认下,新建区块不选择分类保存之后。打开区块管理插件,此时接口 /material-center/api/blocks 返回的结果中,是否有新建的区块? @Lymanli

Issues-translate-bot commented 1 month ago

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


Hello, please confirm that when creating a new block, do not select a category before saving it. Open the block management plug-in. Are there any newly created blocks in the results returned by the interface /material-center/api/blocks?

Lymanli commented 1 month ago

查看 /material-center/api/blocks?appId=918 接口返回的区块中并没有最新添加的区块,我已经将webservice代码版本更新到git的最新版本,但tiny-engine和data-center的代码是9月20日左右时候的代码版本。我准备尝试将tiny-engine和data-center的代码也更新一下,以确认是不是版本问题 —————— 尝试更新了tiny-engine的代码,data-center代码已经是最新的,保存区块后刷新页面,区块管理依然不显示新保存的区块

Issues-translate-bot commented 1 month ago

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


Check /material-center/api/blocks?appId=918. There are no newly added blocks in the blocks returned by the interface. I have updated the webservice code version to the latest version of git, but the code of tiny-engine and data-center This is the code version around September 20th. I am going to try to update the code of tiny-engine and data-center to confirm whether it is a version problem.

chilingling commented 1 month ago

@Lymanli 麻烦确认下,添加的区块是否正确关联了 918 这个应用。

@lu-yg 可以看看该 issue 能否复现

Issues-translate-bot commented 1 month ago

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


You can confirm whether the added block is correctly associated with the 918 application.

@lu-yg Can you see if this issue can be reproduced?