feat: add topN selector for endpoint list (#450)

This commit is contained in:
Fine0830
2025-02-28 16:19:27 +08:00
committed by GitHub
parent 65607a5540
commit 7a690e6704
12 changed files with 28 additions and 10 deletions

View File

@@ -28,6 +28,7 @@ import { store } from "@/store";
import graphql from "@/graphql";
import type { AxiosResponse } from "axios";
import { useAppStoreWithOut } from "@/store/modules/app";
import { EndpointsTopNDefault } from "../data";
interface ProfileState {
endpoints: Endpoint[];
@@ -97,6 +98,7 @@ export const profileStore = defineStore({
serviceId,
duration: useAppStoreWithOut().durationTime,
keyword: keyword || "",
limit: EndpointsTopNDefault,
});
if (res.data.errors) {
return res.data;
@@ -109,6 +111,7 @@ export const profileStore = defineStore({
serviceId,
duration: useAppStoreWithOut().durationTime,
keyword: keyword || "",
limit: EndpointsTopNDefault,
});
if (res.data.errors) {
return res.data;