diff --git a/src/store/modules/event.ts b/src/store/modules/event.ts index 3193f00b..13174b3a 100644 --- a/src/store/modules/event.ts +++ b/src/store/modules/event.ts @@ -29,7 +29,7 @@ interface eventState { services: Service[]; instances: Instance[]; endpoints: Endpoint[]; - condition: QueryEventCondition | any; + condition: Nullable; } export const eventStore = defineStore({ @@ -40,12 +40,10 @@ export const eventStore = defineStore({ services: [{ value: "", label: "All" }], instances: [{ value: "", label: "All" }], endpoints: [{ value: "", label: "All" }], - condition: { - paging: { pageNum: 1, pageSize: 15 }, - }, + condition: null, }), actions: { - setEventCondition(data: any) { + setEventCondition(data: QueryEventCondition) { this.condition = data; }, async getServices(layer: string) { diff --git a/src/views/dashboard/controls/Event.vue b/src/views/dashboard/controls/Event.vue index 3c089ae6..a20bc5e9 100644 --- a/src/views/dashboard/controls/Event.vue +++ b/src/views/dashboard/controls/Event.vue @@ -32,15 +32,16 @@ limitations under the License. -->
- +
+ +
+