This commit is contained in:
dengqichen 2024-12-20 09:37:51 +08:00
parent 0e4125a469
commit 9c9ff6a21a

View File

@ -106,8 +106,6 @@ const FormRenderer: React.FC<{
<div style={{ padding: '8px 0' }}> <div style={{ padding: '8px 0' }}>
{Object.entries(schema.properties).map(([key, value]: [string, any]) => { {Object.entries(schema.properties).map(([key, value]: [string, any]) => {
const fieldPath = path ? `${path}.${key}` : key; const fieldPath = path ? `${path}.${key}` : key;
console.log('Field path:', fieldPath, 'Type:', value.type);
if (value.type === 'object') { if (value.type === 'object') {
// 特殊处理端口组配置 // 特殊处理端口组配置
if (key === 'groups' && path.endsWith('ports')) { if (key === 'groups' && path.endsWith('ports')) {