fix 代码生成的表单查询条件不持久化

Signed-off-by: Mac666 <support@mail.pigx.vip>
This commit is contained in:
Mac666 2023-08-30 04:50:58 +00:00 committed by Gitee
parent 9a7cd55bbd
commit 4d6f31e856
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;
});
})