This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-booster-ui.git
The following commit(s) were added to refs/heads/main by this push:
new 6b1a2fa9 fix: update name (#315)
6b1a2fa9 is described below
commit 6b1a2fa9f8471c7a2b2054e7736d8cc2cc9062a8
Author: Fine0830 <[email protected]>
AuthorDate: Thu Aug 31 18:12:22 2023 +0800
fix: update name (#315)
---
src/views/dashboard/related/topology/components/Metrics.vue | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/dashboard/related/topology/components/Metrics.vue
b/src/views/dashboard/related/topology/components/Metrics.vue
index 6ae9e1bb..aeffa3b2 100644
--- a/src/views/dashboard/related/topology/components/Metrics.vue
+++ b/src/views/dashboard/related/topology/components/Metrics.vue
@@ -18,7 +18,7 @@ limitations under the License. -->
<span class="label">{{
t(dashboardStore.selectedGrid.metricMode === MetricModes.General ?
"metrics" : "expressions")
}}</span>
- <SelectSingle :value="currentMetric" :options="metrics"
@change="changeMetric" class="selectors" />
+ <SelectSingle :value="currentMetric" :options="metricList"
@change="changeMetric" class="selectors" />
</div>
<div class="item mb-10">
<span class="label">{{ t("unit") }}</span>
@@ -71,8 +71,8 @@ limitations under the License. -->
const m = props.metrics.map((d: string) => {
return { label: d, value: d };
});
- const metrics = ref<Option[]>(m.length ? m : [{ label: "", value: "" }]);
- const currentMetric = ref<string>(metrics.value[0].value);
+ const metricList = ref<Option[]>(m.length ? m : [{ label: "", value: "" }]);
+ const currentMetric = ref<string>(metricList.value[0].value);
const currentConfig = ref<{ unit: string; calculation: string; label: string
}>({
unit: "",
calculation: "",
@@ -106,7 +106,7 @@ limitations under the License. -->
}
function changeMetric(val: string) {
currentMetric.value = val;
- const index = metrics.value.findIndex((d: Option) => d.value === val);
+ const index = metricList.value.findIndex((d: Option) => d.value === val);
currentIndex.value = index || 0;
const config = getMetricConfig.value || [];
@@ -123,8 +123,8 @@ limitations under the License. -->
const m = props.metrics.map((d: string) => {
return { label: d, value: d };
});
- metrics.value = m.length ? m : [{ label: "", value: "" }];
- currentMetric.value = metrics.value[0].value;
+ metricList.value = m.length ? m : [{ label: "", value: "" }];
+ currentMetric.value = metricList.value[0].value;
const config = getMetricConfig.value || [];
currentIndex.value = 0;
currentConfig.value = {