mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 00:37:33 +00:00
fix
This commit is contained in:
parent
989212810b
commit
e8062dc2d9
@ -276,21 +276,16 @@ function searchList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => [...(props.config.metricTypes || []), ...(props.config.metrics || [])],
|
() => [
|
||||||
|
...(props.config.metricTypes || []),
|
||||||
|
...(props.config.metrics || []),
|
||||||
|
...(props.config.metricConfig || []),
|
||||||
|
],
|
||||||
(data, old) => {
|
(data, old) => {
|
||||||
if (JSON.stringify(data) === JSON.stringify(old)) {
|
if (JSON.stringify(data) === JSON.stringify(old)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
queryServiceMetrics(services.value);
|
metricConfig.value = props.config.metricConfig;
|
||||||
}
|
|
||||||
);
|
|
||||||
watch(
|
|
||||||
() => [...(props.config.metricConfig || [])],
|
|
||||||
(data, old) => {
|
|
||||||
if (JSON.stringify(data) === JSON.stringify(old)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
metricConfig.value = data;
|
|
||||||
queryServiceMetrics(services.value);
|
queryServiceMetrics(services.value);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -167,5 +167,6 @@ function getLabel(metric: string, index: string) {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
flex-grow: 2;
|
flex-grow: 2;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: calc(100% - 30px);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user