mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
feat: remove needTotal and total fields from query conditions (#94)
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
Reference in New Issue
Block a user