feat: event widget associates with trace and log widget (#130)

This commit is contained in:
Fine0830
2022-07-29 16:34:36 +08:00
committed by GitHub
parent dc8e4bf273
commit 3b3e790dd9
8 changed files with 260 additions and 104 deletions

View File

@@ -53,7 +53,8 @@ export const logStore = defineStore({
setLogCondition(data: any) {
this.conditions = { ...this.conditions, ...data };
},
resetCondition() {
resetState() {
this.logs = [];
this.conditions = {
queryDuration: useAppStoreWithOut().durationTime,
paging: { pageNum: 1, pageSize: 15 },

View File

@@ -63,7 +63,10 @@ export const traceStore = defineStore({
setTraceSpans(spans: Span) {
this.traceSpans = spans;
},
resetCondition() {
resetState() {
this.traceSpans = [];
this.traceList = [];
this.currentTrace = {};
this.conditions = {
queryDuration: useAppStoreWithOut().durationTime,
paging: { pageNum: 1, pageSize: 20 },