From 4d6f31e8563c8cf5179d82b4d4b6ec135cc001ab Mon Sep 17 00:00:00 2001 From: Mac666 Date: Wed, 30 Aug 2023 04:50:58 +0000 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=9A=84=E8=A1=A8=E5=8D=95=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E4=B8=8D=E6=8C=81=E4=B9=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mac666 --- src/views/gen/table/edit.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/gen/table/edit.vue b/src/views/gen/table/edit.vue index 33998b35..634f7442 100644 --- a/src/views/gen/table/edit.vue +++ b/src/views/gen/table/edit.vue @@ -268,8 +268,8 @@ const getTable = (dsName: string, tableName: string) => { .then((res) => { tableId.value = res.data.id; fieldList.value = res.data.fieldList.map((item) => { - item.queryFormType = propToType[item.fieldType]; - item.formType = propToType[item.fieldType]; + item.queryFormType ? item.queryFormType : propToType[item.fieldType]; + item.formType ? item.formType : propToType[item.fieldType]; return item; }); })