Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/FiDA_Front
This commit is contained in:
@@ -70,7 +70,6 @@
|
|||||||
const id = props.node.id
|
const id = props.node.id
|
||||||
if (!id) return
|
if (!id) return
|
||||||
const superiorID = props.node.data.superiorID
|
const superiorID = props.node.data.superiorID
|
||||||
stateManager.deleteNode(id)
|
|
||||||
if(v.secondaryMenu){
|
if(v.secondaryMenu){
|
||||||
nodeManager.createCardsSelect({
|
nodeManager.createCardsSelect({
|
||||||
data: {
|
data: {
|
||||||
@@ -92,6 +91,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// stateManager.deleteNode(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({})
|
defineExpose({})
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ export class NodeManager {
|
|||||||
return current.data.createIndexPosition > max.data.createIndexPosition ? current : max
|
return current.data.createIndexPosition > max.data.createIndexPosition ? current : max
|
||||||
}, superiorGenerateNodes[0])
|
}, superiorGenerateNodes[0])
|
||||||
const snode = superiorID ? this.stateManager.flowManager.getNodeById(superiorID) : this.stateManager.flowManager.getLastNode();
|
const snode = superiorID ? this.stateManager.flowManager.getNodeById(superiorID) : this.stateManager.flowManager.getLastNode();
|
||||||
console.log(snode)
|
|
||||||
const id = options.id || createId()
|
const id = options.id || createId()
|
||||||
const positionX = options.positionX || 0
|
const positionX = options.positionX || 0
|
||||||
const positionY = options.positionY || 0
|
const positionY = options.positionY || 0
|
||||||
@@ -82,6 +81,7 @@ export class NodeManager {
|
|||||||
position,
|
position,
|
||||||
data
|
data
|
||||||
}
|
}
|
||||||
|
if(currentNode)this.stateManager.deleteNode(currentNode.id)
|
||||||
this.addNode(options_)
|
this.addNode(options_)
|
||||||
return options_;
|
return options_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user