From 039572994c0c34fd595b10e95eadc14cffc2003c Mon Sep 17 00:00:00 2001 From: baiqi Date: Thu, 18 Jul 2024 18:13:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(schema):=20=E7=A6=81=E7=94=A8=E6=97=B6?= =?UTF-8?q?=E5=BF=85=E5=A1=AB=E5=8F=AF=E7=82=B9=E5=87=BB=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/pure/ms-json-schema/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/pure/ms-json-schema/index.vue b/frontend/src/components/pure/ms-json-schema/index.vue index 04837d4967..aa9f14f00f 100644 --- a/frontend/src/components/pure/ms-json-schema/index.vue +++ b/frontend/src/components/pure/ms-json-schema/index.vue @@ -928,6 +928,9 @@ } function toggleRequired(record: JsonSchemaTableItem) { + if (props.disabled) { + return; + } record.required = !record.required; emitChange('toggleRequired'); }