Skip to content

Commit a1d5c83

Browse files
wxg0103shaohuzhang1
authored andcommitted
fix: error
(cherry picked from commit 2a63cd6)
1 parent e73414d commit a1d5c83

File tree

1 file changed

+5
-6
lines changed
  • ui/src/workflow/nodes/application-node

1 file changed

+5
-6
lines changed

ui/src/workflow/nodes/application-node/index.vue

+5-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}"
2121
>
2222
<NodeCascader
23-
ref="nodeCascaderRef"
23+
ref="applicationNodeFormRef"
2424
:nodeModel="nodeModel"
2525
class="w-full"
2626
placeholder="请选择检索问题"
@@ -142,10 +142,10 @@
142142
</template>
143143

144144
<script setup lang="ts">
145-
import { set, groupBy } from 'lodash'
145+
import { set, groupBy, create } from 'lodash'
146146
import { app } from '@/main'
147147
import NodeContainer from '@/workflow/common/NodeContainer.vue'
148-
import { ref, computed, onMounted } from 'vue'
148+
import { ref, computed, onMounted, onActivated } from 'vue'
149149
import NodeCascader from '@/workflow/common/NodeCascader.vue'
150150
import type { FormInstance } from 'element-plus'
151151
import applicationApi from '@/api/application'
@@ -214,7 +214,6 @@ const update_field = () => {
214214
if (find_field) {
215215
return {
216216
...item,
217-
default_value: find_field.default_value,
218217
value: find_field.value,
219218
label:
220219
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
@@ -223,6 +222,7 @@ const update_field = () => {
223222
return item
224223
}
225224
})
225+
console.log(merge_api_input_field_list)
226226
set(
227227
props.nodeModel.properties.node_data,
228228
'api_input_field_list',
@@ -235,7 +235,6 @@ const update_field = () => {
235235
if (find_field) {
236236
return {
237237
...item,
238-
default_value: find_field.default_value,
239238
value: find_field.value,
240239
label:
241240
typeof item.label === 'object' && item.label != null ? item.label.label : item.label
@@ -265,7 +264,7 @@ const update_field = () => {
265264
}
266265
})
267266
.catch((err) => {
268-
set(props.nodeModel.properties, 'status', 500)
267+
// set(props.nodeModel.properties, 'status', 500)
269268
})
270269
}
271270

0 commit comments

Comments
 (0)