c1756e5767
当前components.py中每个组件的type属性都是直接字符串赋值,IDE会爆红。 修正为使用本就定义好的ComponentType枚举类 用时修正多个组件中当url为空时convert_to_base64检查路径导致的报错