Skip to content

Commit

Permalink
fix: 修复前端类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Nov 19, 2024
1 parent 6801a24 commit e61eddf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions ui/src/api/type/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ interface chatType {
record_id: string
chat_id: string
vote_status: string
status?: number,
status?: number
execution_details: any[]
upload_meta?: any[]
upload_meta?: {
document_list: Array<any>
image_list: Array<any>
}
}

export class ChatRecordManage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const delOption = (index: number) => {
formValue.value.option_list.splice(index, 1)
}
const formField = computed(() => {
return getData()
return { field: '', ...getData() }
})
const getData = () => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<script setup lang="ts">
import { computed, onMounted } from 'vue'
import RadioRow from '@/components/dynamics-form/items/radio/RadioRow.vue'
import type { FormField } from '@/components/dynamics-form/type'
const props = defineProps<{
modelValue: any
}>()
Expand All @@ -87,8 +88,8 @@ const delOption = (index: number) => {
}
formValue.value.option_list.splice(index, 1)
}
const formField = computed(() => {
return getData()
const formField = computed<FormField>(() => {
return { field: '', ...getData() }
})
const getData = () => {
return {
Expand Down

0 comments on commit e61eddf

Please sign in to comment.