diff --git a/src/store/modules/event.ts b/src/store/modules/event.ts index 8adce8f5..01b6788a 100644 --- a/src/store/modules/event.ts +++ b/src/store/modules/event.ts @@ -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; }, diff --git a/src/views/alarm/Header.vue b/src/views/alarm/Header.vue index 3b9bb4ca..15e9be6e 100644 --- a/src/views/alarm/Header.vue +++ b/src/views/alarm/Header.vue @@ -39,8 +39,8 @@ limitations under the License. -->