fix: support `=` in the tag value in the trace query page. (#411)
diff --git a/src/views/components/trace/trace-search.vue b/src/views/components/trace/trace-search.vue
index 5baf8d9..6976c1c 100644
--- a/src/views/components/trace/trace-search.vue
+++ b/src/views/components/trace/trace-search.vue
@@ -270,10 +270,11 @@
}
if (this.tagsList.length) {
const tagsMap = this.tagsList.map((item: string) => {
- const t = item.split('=');
+ const key = item.substring(0, item.indexOf('='));
+
return {
- key: t[0],
- value: t[1],
+ key,
+ value: item.substring(item.indexOf('=') + 1, item.length),
};
});
temp.tags = tagsMap;
diff --git a/src/views/containers/topology/trace/index.vue b/src/views/containers/topology/trace/index.vue
index 671f334..f2e1633 100644
--- a/src/views/containers/topology/trace/index.vue
+++ b/src/views/containers/topology/trace/index.vue
@@ -38,8 +38,6 @@
})
export default class WindowTrace extends Vue {
@State('rocketTrace') private stateTrace!: any;
- @Action('rocketTrace/GET_TRACELIST') private GET_TRACELIST: any;
- @Action('rocketTrace/GET_TRACE_SPANS') private GET_TRACE_SPANS: any;
@Prop() private current!: Option;
}
</script>
diff --git a/src/views/containers/trace.vue b/src/views/containers/trace.vue
index 1d52526..e4e10e7 100644
--- a/src/views/containers/trace.vue
+++ b/src/views/containers/trace.vue
@@ -40,8 +40,6 @@
export default class Trace extends Vue {
@State('rocketTrace') private stateTrace!: any;
@Mutation('SET_EVENTS') private SET_EVENTS: any;
- @Action('rocketTrace/GET_TRACELIST') private GET_TRACELIST: any;
- @Action('rocketTrace/GET_TRACE_SPANS') private GET_TRACE_SPANS: any;
@Prop({ default: () => ({ label: 'All', key: '' }) })
private service!: Option;