Skip to content

Commit e61eddf

Browse files
committed
fix: 修复前端类型错误
1 parent 6801a24 commit e61eddf

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

ui/src/api/type/application.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ interface chatType {
3939
record_id: string
4040
chat_id: string
4141
vote_status: string
42-
status?: number,
42+
status?: number
4343
execution_details: any[]
44-
upload_meta?: any[]
44+
upload_meta?: {
45+
document_list: Array<any>
46+
image_list: Array<any>
47+
}
4548
}
4649

4750
export class ChatRecordManage {

ui/src/components/dynamics-form/constructor/items/RadioCardConstructor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const delOption = (index: number) => {
8888
formValue.value.option_list.splice(index, 1)
8989
}
9090
const formField = computed(() => {
91-
return getData()
91+
return { field: '', ...getData() }
9292
})
9393
const getData = () => {
9494
return {

ui/src/components/dynamics-form/constructor/items/RadioRowConstructor.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
<script setup lang="ts">
6464
import { computed, onMounted } from 'vue'
6565
import RadioRow from '@/components/dynamics-form/items/radio/RadioRow.vue'
66+
import type { FormField } from '@/components/dynamics-form/type'
6667
const props = defineProps<{
6768
modelValue: any
6869
}>()
@@ -87,8 +88,8 @@ const delOption = (index: number) => {
8788
}
8889
formValue.value.option_list.splice(index, 1)
8990
}
90-
const formField = computed(() => {
91-
return getData()
91+
const formField = computed<FormField>(() => {
92+
return { field: '', ...getData() }
9293
})
9394
const getData = () => {
9495
return {

0 commit comments

Comments
 (0)