diff --git a/src/store/modules/log.ts b/src/store/modules/log.ts index ce1674d1..241297de 100644 --- a/src/store/modules/log.ts +++ b/src/store/modules/log.ts @@ -53,6 +53,12 @@ export const logStore = defineStore({ setLogCondition(data: any) { this.conditions = { ...this.conditions, ...data }; }, + resetCondition() { + this.conditions = { + queryDuration: useAppStoreWithOut().durationTime, + paging: { pageNum: 1, pageSize: 15 }, + }; + }, async getServices(layer: string) { const res: AxiosResponse = await graphql.query("queryServices").params({ layer, diff --git a/src/views/dashboard/related/components/LogTable/Index.vue b/src/views/dashboard/related/components/LogTable/Index.vue index 1e1f257a..f1658ee4 100644 --- a/src/views/dashboard/related/components/LogTable/Index.vue +++ b/src/views/dashboard/related/components/LogTable/Index.vue @@ -17,7 +17,9 @@ limitations under the License. -->