优化节点初始化逻辑
This commit is contained in:
@@ -104,7 +104,6 @@ export default defineComponent({
|
||||
const isDraggingOver = ref(false);
|
||||
const currentScenarioEditing = ref<boolean>(false);
|
||||
const currentScenario = ref<Scenario | null>(null);
|
||||
const currentGraph = ref<GraphContainer | null>(null);
|
||||
const selectedModelNode = ref<Node<NodeProperties> | null>(null);
|
||||
const selectedNodeTaskElement = ref<GraphTaskElement | null>(null);
|
||||
const changed = ref<boolean>(false);
|
||||
@@ -403,10 +402,6 @@ export default defineComponent({
|
||||
(graph.value as any).currentScenario = null;
|
||||
}
|
||||
|
||||
currentGraph.value = {
|
||||
edges: [],
|
||||
nodes: [],
|
||||
};
|
||||
selectedModelNode.value = null;
|
||||
selectedNodeTaskElement.value = null;
|
||||
|
||||
@@ -743,7 +738,6 @@ export default defineComponent({
|
||||
handleCreate,
|
||||
currentScenarioEditing,
|
||||
currentScenario,
|
||||
currentGraph,
|
||||
selectedNodeTaskElement,
|
||||
selectedModelNode,
|
||||
graph,
|
||||
|
||||
Reference in New Issue
Block a user