Skip to content

Commit cfc1906

Browse files
committed
fix: The search and positioning status is incorrect. By default, only the node being located needs to be selected, and not all nodes found in the search need to be selected
1 parent ac43b46 commit cfc1906

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ui/src/workflow/common/NodeContainer.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,26 +443,24 @@ const closeNodeMenu = () => {
443443
const keyWord = ref('')
444444
const currentKeyWord = ref(false)
445445
const selectOn = (kw: string) => {
446-
props.nodeModel.setSelected(true)
447446
keyWord.value = kw
447+
props.nodeModel.isSelected = false
448448
currentKeyWord.value = false
449-
console.log('selectOn', kw)
450449
}
451450
/**
452451
* 定位时触发
453452
* @param kw
454453
*/
455454
const focusOn = (kw: string) => {
455+
props.nodeModel.setSelected(true)
456456
currentKeyWord.value = true
457-
console.log('focusOn', kw)
458457
}
459458
/**
460459
* 清除时触发
461460
*/
462461
const clearSelectOn = () => {
463462
keyWord.value = ''
464463
currentKeyWord.value = false
465-
console.log('onClearSearchSelect')
466464
}
467465
468466
// 高亮选中关键字

0 commit comments

Comments
 (0)