This commit is contained in:
Qiuxia Fan 2022-03-29 19:07:26 +08:00
parent 264860b709
commit a4d10b1930
3 changed files with 4 additions and 6 deletions

View File

@ -394,7 +394,6 @@ export const topologyStore = defineStore({
queryStr: string; queryStr: string;
conditions: { [key: string]: unknown }; conditions: { [key: string]: unknown };
}) { }) {
console.log(param);
const res: AxiosResponse = await query(param); const res: AxiosResponse = await query(param);
if (res.data.errors) { if (res.data.errors) {

View File

@ -410,7 +410,6 @@ function deleteMetric(index: number) {
...{ metricTypes: states.metricTypes, metrics: states.metrics }, ...{ metricTypes: states.metricTypes, metrics: states.metrics },
metricConfig, metricConfig,
}); });
console.log(dashboardStore.selectedGrid);
} }
function setMetricTypeList(type: string) { function setMetricTypeList(type: string) {
if (type !== MetricsType.REGULAR_VALUE) { if (type !== MetricsType.REGULAR_VALUE) {

View File

@ -145,12 +145,12 @@ async function queryServices() {
ElMessage.error(resp.errors); ElMessage.error(resp.errors);
} }
sortServices.value = selectorStore.services.sort((a: any, b: any) => { sortServices.value = selectorStore.services.sort((a: any, b: any) => {
const nameA = a.group.toUpperCase(); const groupA = a.group.toUpperCase();
const nameB = b.group.toUpperCase(); const groupB = b.group.toUpperCase();
if (nameA < nameB) { if (groupA < groupB) {
return -1; return -1;
} }
if (nameA > nameB) { if (groupA > groupB) {
return 1; return 1;
} }
return 0; return 0;