diff --git a/src/components/CreateCodeStep/src/ViewDesignStep.vue b/src/components/CreateCodeStep/src/ViewDesignStep.vue index 11ad036..19c70a4 100644 --- a/src/components/CreateCodeStep/src/ViewDesignStep.vue +++ b/src/components/CreateCodeStep/src/ViewDesignStep.vue @@ -491,7 +491,9 @@ const handlerEnableAndDisableButtonConfig = () => { let hasValid = false; - let fields = generatorConfig?.tableStructureConfigs[0]?.tableFieldConfigs; + // let fields = generatorConfig?.tableStructureConfigs[0]?.tableFieldConfigs; + let a = generatorConfig?.tableStructureConfigs || [] + let fields = (a[0] || {}).tableFieldConfigs; if (fields != undefined) { for (const field of fields) { if (field?.fieldName == 'valid') {