主题端调用资源的 Annotations 不方便 #3073
Labels
area/core
Issues or PRs related to the Halo Core
kind/improvement
Categorizes issue or PR as related to a improvement.
Milestone
你当前使用的版本
2.1.0-rc.1
描述一下此特性
目前 2.1.0-rc.1 支持了对模型的 Annotations 进行表单定义,目的是为了让插件和主题可以扩展元数据(字段),但目前在主题端调用和判断不是特别方便,请看:
annotations
是否为 null,所以需要判断,防止模板渲染异常。希望针对主题的调用进行优化。
/kind improvement
/area core
/milestone 2.1.x
附加信息
No response
The text was updated successfully, but these errors were encountered: