feat: remove needTotal and total fields from query conditions (#94)

This commit is contained in:
Fine0830
2022-05-19 19:29:02 +08:00
committed by GitHub
parent b953904c71
commit b544decbbb
7 changed files with 20 additions and 18 deletions

View File

@@ -25,7 +25,6 @@ import { useAppStoreWithOut } from "@/store/modules/app";
interface eventState {
loading: boolean;
events: Event[];
total: number;
services: Service[];
instances: Instance[];
endpoints: Endpoint[];
@@ -37,12 +36,11 @@ export const eventStore = defineStore({
state: (): eventState => ({
loading: false,
events: [],
total: 0,
services: [{ value: "", label: "All" }],
instances: [{ value: "", label: "All" }],
endpoints: [{ value: "", label: "All" }],
condition: {
paging: { pageNum: 1, pageSize: 15, needTotal: true },
paging: { pageNum: 1, pageSize: 15 },
},
}),
actions: {
@@ -117,7 +115,6 @@ export const eventStore = defineStore({
return item;
}
);
this.total = res.data.data.fetchEvents.total;
}
return res.data;
},