mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 09:43:10 +00:00
fix: 修复多个全局变量
This commit is contained in:
parent
fd5047aecf
commit
31936c8615
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue