bugfix:フィールド表示の不具合を修正

This commit is contained in:
xiaozhe.ma
2024-07-23 13:23:29 +09:00
parent 9186cfb3d0
commit 96722d9c2f

View File

@@ -8,7 +8,7 @@
import { useAsyncState } from '@vueuse/core';
import { api } from 'boot/axios';
import { computed ,Prop,PropType} from 'vue';
import {IField} from 'src/types/ComponentTypes'
import {IField} from 'src/types/ComponentTypes';
export default {
name: 'FieldList',
@@ -42,11 +42,10 @@ export default {
}
}).then(res => {
const fields = res.data.properties;
return Object.values(fields).map(f => ({ name: fields.label, objectType: 'field', ...fields }));
return Object.values(fields).map((f:any) => ({ name: f.label, objectType: 'field', ...f }));
});
}
}, [{ name: '', objectType: '', type: '', code: '', label: '' }])
return {
columns,
rows,