File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
views/knowledge-workflow/component/action
workflow/nodes/knowledge-base-node/component Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1010 >
1111 <template #default >
1212 <h4 class =" title-decoration-1 mb-16 mt-4" >
13- {{ $t('chat.userInput') }}
13+ {{ chat_title || $t('chat.userInput') }}
1414 </h4 >
1515 </template >
1616 </DynamicsForm >
@@ -26,6 +26,10 @@ const dynamicsFormRef = ref<InstanceType<typeof DynamicsForm>>()
2626const validate = () => {
2727 return dynamicsFormRef .value ?.validate ()
2828}
29+ const chat_title = computed (() => {
30+ const kBase = props .workflow ?.nodes ?.find ((n : any ) => n .type === WorkflowType .KnowledgeBase )
31+ return kBase .properties .user_input_config .title
32+ })
2933const base_form_list = computed (() => {
3034 const kBase = props .workflow ?.nodes ?.find ((n : any ) => n .type === WorkflowType .KnowledgeBase )
3135 if (kBase ) {
Original file line number Diff line number Diff line change @@ -209,7 +209,10 @@ onMounted(() => {
209209 if (props .nodeModel .properties .user_input_field_list ) {
210210 inputFieldList .value = cloneDeep (props .nodeModel .properties .user_input_field_list )
211211 }
212-
212+ if (props .nodeModel .properties .user_input_config ) {
213+ inputFieldConfig .value = props .nodeModel .properties .user_input_config
214+ }
215+ set (props .nodeModel .properties , ' user_input_config' , inputFieldConfig )
213216 onDragHandle ()
214217})
215218 </script >
You can’t perform that action at this time.
0 commit comments