perf: workflow default value

This commit is contained in:
wangdan-fit2cloud 2025-07-16 17:42:22 +08:00
parent c817df393f
commit c249f7501f
3 changed files with 3 additions and 4 deletions

View File

@ -99,7 +99,6 @@ import { type chatType } from '@/api/type/application'
import { getImgUrl, downloadByURL } from '@/utils/common'
import { getAttrsArray } from '@/utils/array'
import { onMounted, computed } from 'vue'
import useStore from '@/stores'
const props = defineProps<{
application: any
chatRecord: chatType
@ -107,7 +106,7 @@ const props = defineProps<{
}>()
const showAvatar = computed(() => {
return props.application.show_avatar == undefined ? true : props.application.show_avatar
return props.application.show_user_avatar == undefined ? true : props.application.show_user_avatar
})
const document_list = computed(() => {

View File

@ -223,7 +223,7 @@ const form = {
system: '',
prompt: defaultPrompt,
dialogue_number: 1,
is_result: false,
is_result: true,
temperature: null,
max_tokens: null,
dialogue_type: 'WORKFLOW',

View File

@ -97,7 +97,7 @@ const form = {
reply_type: 'content',
content: '',
fields: [],
is_result: false
is_result: true,
}
const form_data = computed({