From a4d10b19308890b4f85175552a9dec2d0b92066c Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Tue, 29 Mar 2022 19:07:26 +0800 Subject: [PATCH] fix typo --- src/store/modules/topology.ts | 1 - src/views/dashboard/configuration/widget/metric/Index.vue | 1 - src/views/dashboard/graphs/ServiceList.vue | 8 ++++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/store/modules/topology.ts b/src/store/modules/topology.ts index 7dda19ce..32da7b3f 100644 --- a/src/store/modules/topology.ts +++ b/src/store/modules/topology.ts @@ -394,7 +394,6 @@ export const topologyStore = defineStore({ queryStr: string; conditions: { [key: string]: unknown }; }) { - console.log(param); const res: AxiosResponse = await query(param); if (res.data.errors) { diff --git a/src/views/dashboard/configuration/widget/metric/Index.vue b/src/views/dashboard/configuration/widget/metric/Index.vue index 6d5724ce..adad7438 100644 --- a/src/views/dashboard/configuration/widget/metric/Index.vue +++ b/src/views/dashboard/configuration/widget/metric/Index.vue @@ -410,7 +410,6 @@ function deleteMetric(index: number) { ...{ metricTypes: states.metricTypes, metrics: states.metrics }, metricConfig, }); - console.log(dashboardStore.selectedGrid); } function setMetricTypeList(type: string) { if (type !== MetricsType.REGULAR_VALUE) { diff --git a/src/views/dashboard/graphs/ServiceList.vue b/src/views/dashboard/graphs/ServiceList.vue index eae2ffe3..7bcac745 100644 --- a/src/views/dashboard/graphs/ServiceList.vue +++ b/src/views/dashboard/graphs/ServiceList.vue @@ -145,12 +145,12 @@ async function queryServices() { ElMessage.error(resp.errors); } sortServices.value = selectorStore.services.sort((a: any, b: any) => { - const nameA = a.group.toUpperCase(); - const nameB = b.group.toUpperCase(); - if (nameA < nameB) { + const groupA = a.group.toUpperCase(); + const groupB = b.group.toUpperCase(); + if (groupA < groupB) { return -1; } - if (nameA > nameB) { + if (groupA > groupB) { return 1; } return 0;