fix: 修复多个全局变量

This commit is contained in:
shaohuzhang1 2024-06-27 17:46:38 +08:00
parent fd5047aecf
commit 31936c8615

View File

@ -23,25 +23,11 @@ const props = defineProps<{
nodeModel: any
}>()
const options = ref<Array<any>>([
{
value: 'global',
label: '全局变量',
type: 'global',
children: []
}
])
const options = ref<Array<any>>([])
function visibleChange(bool: boolean) {
if (bool) {
options.value = [
{
value: 'global',
label: '全局变量',
type: 'global',
children: []
}
]
options.value = []
getIncomingNode(props.nodeModel.id)
}
}