mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 09:00:50 +00:00
clear cache data
This commit is contained in:
parent
08a4b54188
commit
a830ca27f7
@ -53,7 +53,8 @@ export const logStore = defineStore({
|
|||||||
setLogCondition(data: any) {
|
setLogCondition(data: any) {
|
||||||
this.conditions = { ...this.conditions, ...data };
|
this.conditions = { ...this.conditions, ...data };
|
||||||
},
|
},
|
||||||
resetCondition() {
|
resetState() {
|
||||||
|
this.logs = [];
|
||||||
this.conditions = {
|
this.conditions = {
|
||||||
queryDuration: useAppStoreWithOut().durationTime,
|
queryDuration: useAppStoreWithOut().durationTime,
|
||||||
paging: { pageNum: 1, pageSize: 15 },
|
paging: { pageNum: 1, pageSize: 15 },
|
||||||
|
@ -63,7 +63,10 @@ export const traceStore = defineStore({
|
|||||||
setTraceSpans(spans: Span) {
|
setTraceSpans(spans: Span) {
|
||||||
this.traceSpans = spans;
|
this.traceSpans = spans;
|
||||||
},
|
},
|
||||||
resetCondition() {
|
resetState() {
|
||||||
|
this.traceSpans = [];
|
||||||
|
this.traceList = [];
|
||||||
|
this.currentTrace = {};
|
||||||
this.conditions = {
|
this.conditions = {
|
||||||
queryDuration: useAppStoreWithOut().durationTime,
|
queryDuration: useAppStoreWithOut().durationTime,
|
||||||
paging: { pageNum: 1, pageSize: 20 },
|
paging: { pageNum: 1, pageSize: 20 },
|
||||||
|
@ -343,7 +343,7 @@ function removeExcludeContent(index: number) {
|
|||||||
excludingContentStr.value = "";
|
excludingContentStr.value = "";
|
||||||
}
|
}
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
logStore.resetCondition();
|
logStore.resetState();
|
||||||
const item = {
|
const item = {
|
||||||
...props.data,
|
...props.data,
|
||||||
filters: undefined,
|
filters: undefined,
|
||||||
@ -380,7 +380,6 @@ watch(
|
|||||||
watch(
|
watch(
|
||||||
() => props.data.filters,
|
() => props.data.filters,
|
||||||
(newJson, oldJson) => {
|
(newJson, oldJson) => {
|
||||||
console.log(props.data.filters);
|
|
||||||
if (props.data.filters) {
|
if (props.data.filters) {
|
||||||
if (JSON.stringify(newJson) === JSON.stringify(oldJson)) {
|
if (JSON.stringify(newJson) === JSON.stringify(oldJson)) {
|
||||||
return;
|
return;
|
||||||
|
@ -235,7 +235,7 @@ async function searchEndpoints(keyword: string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
traceStore.resetCondition();
|
traceStore.resetState();
|
||||||
const item = {
|
const item = {
|
||||||
...props.data,
|
...props.data,
|
||||||
filters: undefined,
|
filters: undefined,
|
||||||
|
Loading…
Reference in New Issue
Block a user