diff --git a/platform_web/components/ServerConfigEditor.tsx b/platform_web/components/ServerConfigEditor.tsx index e8f1d76..aa266f3 100644 --- a/platform_web/components/ServerConfigEditor.tsx +++ b/platform_web/components/ServerConfigEditor.tsx @@ -115,7 +115,7 @@ export function ServerConfigEditor({ instance, operations, requester, onClose }: {message && } {error && workspace && } {loading && } - {!loading && mode === "friendly" &&
{fields.length === 0 && 该配置文件没有声明可视化字段,请切换到源码模式。}{fields.map((field) => setValues((current) => ({ ...current, [field.key]: value }))} />)}
} + {!loading && mode === "friendly" &&
{fields.length === 0 && 该配置文件没有声明可视化字段,请切换到源码模式。}{configFieldGroups(fields).map((group) =>

{group.label}

{group.fields.map((field) => setValues((current) => ({ ...current, [field.key]: value }))} />)}
)}
} {!loading && mode === "source" &&