fix: update independentSelector in dashboard (#487)
diff --git a/src/views/components/dashboard/charts/chart-edit.vue b/src/views/components/dashboard/charts/chart-edit.vue
index 2254416..3124571 100755
--- a/src/views/components/dashboard/charts/chart-edit.vue
+++ b/src/views/components/dashboard/charts/chart-edit.vue
@@ -433,6 +433,7 @@
} else {
this.EDIT_COMP_CONFIG({ index: this.index, values: { [params.type]: this.itemConfig[params.type] } });
}
+ return;
}
if (params.type === 'aggregation' && ['milliseconds', 'seconds'].includes(this.itemConfig.aggregation)) {
this.updateAggregation(params);
diff --git a/src/views/components/dashboard/charts/constant.ts b/src/views/components/dashboard/charts/constant.ts
index 619e74a..6fbd643 100644
--- a/src/views/components/dashboard/charts/constant.ts
+++ b/src/views/components/dashboard/charts/constant.ts
@@ -29,8 +29,8 @@
];
export const IndependentType = [
- { key: 'true', label: 'Self selectors' },
- { key: 'false', label: 'Common selectors' },
+ { key: true, label: 'Self selectors' },
+ { key: false, label: 'Common selectors' },
];
export enum MetricsType {
diff --git a/src/views/components/trace/trace-search.vue b/src/views/components/trace/trace-search.vue
index 79ea57b..75d8de4 100644
--- a/src/views/components/trace/trace-search.vue
+++ b/src/views/components/trace/trace-search.vue
@@ -221,10 +221,8 @@
temp.traceId = this.traceId;
}
localStorage.setItem('traceId', this.traceId);
-
temp.tags = this.tagsMap;
localStorage.setItem('traceTags', JSON.stringify(this.tagsList));
-
this.SET_TRACE_FORM(temp);
this.$eventBus.$emit('SET_LOADING_TRUE', () => {
this.GET_TRACELIST().then(() => {