优化节点初始化逻辑

This commit is contained in:
2026-04-16 15:52:36 +08:00
parent 28cd9c131b
commit 4330be8d0e
2 changed files with 32 additions and 42 deletions

View File

@@ -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,