fix: optimize widgets (#111)

This commit is contained in:
Fine0830
2022-06-16 15:19:17 +08:00
committed by GitHub
parent 4c762a2458
commit 2be0a84d48
3 changed files with 22 additions and 9 deletions

View File

@@ -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,