diff --git a/console/src/modules/system/plugins/PluginList.vue b/console/src/modules/system/plugins/PluginList.vue index 9c0f98835..adef80182 100644 --- a/console/src/modules/system/plugins/PluginList.vue +++ b/console/src/modules/system/plugins/PluginList.vue @@ -52,6 +52,8 @@ function handleClearFilters() { selectedEnabledValue.value = undefined; } +const total = ref(0); + const { data, isLoading, isFetching, refetch } = useQuery({ queryKey: ["plugins", keyword, selectedEnabledValue, selectedSortValue], queryFn: async () => { @@ -62,6 +64,9 @@ const { data, isLoading, isFetching, refetch } = useQuery({ enabled: selectedEnabledValue.value, sort: [selectedSortValue.value].filter(Boolean) as string[], }); + + total.value = data.total; + return data.items; }, keepPreviousData: true, @@ -304,6 +309,14 @@ onMounted(() => { + +