mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 16:15:25 +00:00
set current config
This commit is contained in:
parent
c00d5d2a05
commit
4fb4c7d4a4
@ -106,11 +106,12 @@ const getMetricConfig = computed(() => {
|
||||
});
|
||||
|
||||
function changeConfigs(param: { [key: string]: string }) {
|
||||
const metricConfig = getMetricConfig.value;
|
||||
const metricConfig = getMetricConfig.value || [];
|
||||
metricConfig[currentIndex.value] = {
|
||||
...metricConfig[currentIndex.value],
|
||||
...param,
|
||||
};
|
||||
currentConfig.value = metricConfig[currentIndex.value];
|
||||
emit("update", { [props.type]: metricConfig });
|
||||
}
|
||||
function changeMetric(val: string) {
|
||||
|
Loading…
Reference in New Issue
Block a user