mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
fix: set config to control depth selector (#16)
This commit is contained in:
@@ -92,6 +92,7 @@ export const dashboardStore = defineStore({
|
||||
iconTheme: true,
|
||||
content: "Topology",
|
||||
fontSize: 18,
|
||||
showDepth: true,
|
||||
};
|
||||
}
|
||||
this.layout = this.layout.map((d: LayoutConfig) => {
|
||||
|
@@ -35,7 +35,6 @@ interface TopologyState {
|
||||
nodeMetrics: MetricVal;
|
||||
linkServerMetrics: MetricVal;
|
||||
linkClientMetrics: MetricVal;
|
||||
defaultDepth: string;
|
||||
}
|
||||
|
||||
export const topologyStore = defineStore({
|
||||
@@ -48,7 +47,6 @@ export const topologyStore = defineStore({
|
||||
nodeMetrics: {},
|
||||
linkServerMetrics: {},
|
||||
linkClientMetrics: {},
|
||||
defaultDepth: "2",
|
||||
}),
|
||||
actions: {
|
||||
setNode(node: Node) {
|
||||
@@ -114,9 +112,6 @@ export const topologyStore = defineStore({
|
||||
setLinkClientMetrics(m: { id: string; value: unknown }[]) {
|
||||
this.linkClientMetrics = m;
|
||||
},
|
||||
setDefaultDepth(val: number) {
|
||||
this.defaultDepth = val;
|
||||
},
|
||||
async getDepthServiceTopology(serviceIds: string[], depth: number) {
|
||||
const res = await this.getServicesTopology(serviceIds);
|
||||
if (depth > 1) {
|
||||
|
Reference in New Issue
Block a user