diff --git a/src/views/dashboard/graphs/EndpointList.vue b/src/views/dashboard/graphs/EndpointList.vue index f96484fd..d04c0c73 100644 --- a/src/views/dashboard/graphs/EndpointList.vue +++ b/src/views/dashboard/graphs/EndpointList.vue @@ -118,15 +118,13 @@ const dashboardStore = useDashboardStore(); const chartLoading = ref(false); const endpoints = ref([]); const pageSize = 15; -const total = 15; const searchText = ref(""); -queryEndpoints(total); +queryEndpoints(); -async function queryEndpoints(limit?: number) { +async function queryEndpoints() { chartLoading.value = true; const resp = await selectorStore.getEndpoints({ - limit, keyword: searchText.value, }); @@ -187,8 +185,7 @@ function changePage(pageIndex: number) { ); } async function searchList() { - const limit = searchText.value ? undefined : total; - await queryEndpoints(limit); + await queryEndpoints(); } function getUnit(index: number) { const u = @@ -211,7 +208,7 @@ watch( watch( () => selectorStore.currentService, () => { - queryEndpoints(total); + queryEndpoints(); } );