diff --git a/src/views/dashboard/configuration/widget/StandardOptions.vue b/src/views/dashboard/configuration/widget/StandardOptions.vue index d805ed7e..5b94f05d 100644 --- a/src/views/dashboard/configuration/widget/StandardOptions.vue +++ b/src/views/dashboard/configuration/widget/StandardOptions.vue @@ -133,9 +133,6 @@ const { t } = useI18n(); const emit = defineEmits(["update", "loading"]); const dashboardStore = useDashboardStore(); const { selectedGrid } = dashboardStore; -const percentile = ref( - dashboardStore.selectedGrid.metricTypes.includes("readLabeledMetricsValues") -); const sortOrder = ref(selectedGrid.standard.sortOrder || "DES"); function changeStandardOpt(param?: any) { diff --git a/src/views/dashboard/graphs/EndpointList.vue b/src/views/dashboard/graphs/EndpointList.vue index 78cf2ae1..21a4173b 100644 --- a/src/views/dashboard/graphs/EndpointList.vue +++ b/src/views/dashboard/graphs/EndpointList.vue @@ -92,7 +92,6 @@ import Card from "./Card.vue"; import { EntityType } from "../data"; import router from "@/router"; import getDashboard from "@/hooks/useDashboardsSession"; -import { number } from "echarts/core"; /*global defineProps */ const props = defineProps({ @@ -119,10 +118,11 @@ const chartLoading = ref(false); const endpoints = ref([]); const searchEndpoints = ref([]); const pageSize = 5; +const total = 10; const searchText = ref(""); if (props.needQuery) { - queryEndpoints(10); + queryEndpoints(total); } async function queryEndpoints(limit?: number) { chartLoading.value = true; @@ -184,7 +184,7 @@ function changePage(pageIndex: number) { ); } async function searchList() { - const limit = searchText.value ? undefined : 10; + const limit = searchText.value ? undefined : total; await queryEndpoints(limit); } watch( @@ -198,7 +198,7 @@ watch( watch( () => selectorStore.currentService, () => { - queryEndpoints(10); + queryEndpoints(total); } );