This commit is contained in:
qsh
2024-06-27 15:09:53 +08:00
parent 848830a21b
commit 6f4067d50c
5 changed files with 214 additions and 30 deletions

View File

@@ -179,7 +179,11 @@ const props = defineProps({
})
const showSchema = computed(() => {
const arr = [
const arr1 = [...props.schema]
if (arr1.length % 2 != 0) {
arr1.push({})
}
const arr2 = [
{
field: 'requirement',
label: '诉求',
@@ -192,7 +196,7 @@ const showSchema = computed(() => {
isEditor: true
}
]
return [...props.schema, ...arr]
return [...arr1, ...arr2]
})
const followList = ref([])