From 9b134161a94867f45d1a3d6ab87485ff65562514 Mon Sep 17 00:00:00 2001 From: FutureMeng Date: Tue, 21 Jan 2025 17:09:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93options=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E9=99=90=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Form/src/Form.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue index eb18f75..22de784 100644 --- a/src/components/Form/src/Form.vue +++ b/src/components/Form/src/Form.vue @@ -154,6 +154,7 @@ export default defineComponent({ const getOptions = async (fn: Function, item: FormSchema) => { const options = await fn() + if (!options || options.length == 0) return setSchema([ { field: item.field,