Fix: fix service-selection changing error (#265)
Fixed topology layout when the service has been changed.
diff --git a/src/store/modules/topology/index.ts b/src/store/modules/topology/index.ts
index 7aa078c..07f6af6 100644
--- a/src/store/modules/topology/index.ts
+++ b/src/store/modules/topology/index.ts
@@ -276,6 +276,8 @@
const idsC = calls
.filter((i: any) => i.detectPoints.indexOf('CLIENT') !== -1)
.map((b: any) => b.id);
+ context.commit(types.SET_TOPO_COPY, { calls: [], nodes: [] });
+ context.commit(types.SET_TOPO, { calls: [], nodes: [] });
return graph
.query('queryTopoInfo')
.params({ ...params, ids, idsC, idsS })