From 8cd8af121bd211cd5186e538b95a630d4d15076d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Wed, 22 Oct 2025 09:35:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=A8=A1=E5=9D=97=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CreateCodeStep/src/ViewDesignStep.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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') {