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 { getImgUrl, downloadByURL } from '@/utils/common'
import { getAttrsArray } from '@/utils/array' import { getAttrsArray } from '@/utils/array'
import { onMounted, computed } from 'vue' import { onMounted, computed } from 'vue'
import useStore from '@/stores'
const props = defineProps<{ const props = defineProps<{
application: any application: any
chatRecord: chatType chatRecord: chatType
@ -107,7 +106,7 @@ const props = defineProps<{
}>() }>()
const showAvatar = computed(() => { 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(() => { const document_list = computed(() => {

View File

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

View File

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