mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复前端类型错误 (#1653)
This commit is contained in:
parent
6801a24c38
commit
119bba030b
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}>()
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue