|
@@ -2110,11 +2110,12 @@ class PublicRpcService implements PublicRpcServiceInterface
|
|
if(empty($component_type)){
|
|
if(empty($component_type)){
|
|
return Result::error('组件类型不存在!');
|
|
return Result::error('组件类型不存在!');
|
|
}
|
|
}
|
|
- $default_code = json_decode($component_type['com_code'] ?? '',true);
|
|
|
|
- if(empty($default_code)){
|
|
|
|
|
|
+ $all_code = json_decode($component_type['com_code'] ?? '',true);
|
|
|
|
+ $component_type['all_code'] = $all_code['listType'] ?? [];
|
|
|
|
+ if(empty($component_type)){
|
|
return Result::error('组件类型不存在!');
|
|
return Result::error('组件类型不存在!');
|
|
}
|
|
}
|
|
- return Result::success($default_code['listType']);
|
|
|
|
|
|
+ return Result::success($component_type);
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 组件管理-获取所有组件
|
|
* 组件管理-获取所有组件
|