Clean up emitter listeners and destroy Cytoscape instance on unmount

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 17:51:41 +08:00
parent e5ddd8c0bd
commit 0f09a723a2
2 changed files with 6 additions and 0 deletions

View File

@@ -627,6 +627,9 @@ function setActivityBgImage(mapData) {
})();
onBeforeUnmount(() => {
emitter.off("saveModal");
emitter.off("leaveFilter");
cytoscapeGraph.value?.destroy();
logId.value = null;
createFilterId.value = null;
temporaryData.value = [];