mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 08:17:33 +00:00
fix: update
This commit is contained in:
parent
ef33e2cdd3
commit
b9cda372de
@ -117,13 +117,6 @@ export default function associateProcessor(props: any) {
|
|||||||
item.metricValue = value;
|
item.metricValue = value;
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
function removeAssociationFilters(config: LayoutConfig) {
|
|
||||||
const dashboardStore = useDashboardStore();
|
return { eventAssociate, traceFilters };
|
||||||
if (!config.filters) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
delete config.filters;
|
|
||||||
dashboardStore.setWidget(config);
|
|
||||||
}
|
|
||||||
return { eventAssociate, traceFilters, removeAssociationFilters };
|
|
||||||
}
|
}
|
||||||
|
@ -320,7 +320,9 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
logStore.resetState();
|
logStore.resetState();
|
||||||
removeAssociationFilters(props.data);
|
const config = props.data;
|
||||||
|
delete config.filters;
|
||||||
|
dashboardStore.setWidget(config);
|
||||||
});
|
});
|
||||||
watch(
|
watch(
|
||||||
() => selectorStore.currentService,
|
() => selectorStore.currentService,
|
||||||
|
@ -246,7 +246,9 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
traceStore.resetState();
|
traceStore.resetState();
|
||||||
removeAssociationFilters(props.data);
|
const config = props.data;
|
||||||
|
delete config.filters;
|
||||||
|
dashboardStore.setWidget(config);
|
||||||
});
|
});
|
||||||
watch(
|
watch(
|
||||||
() => [selectorStore.currentPod],
|
() => [selectorStore.currentPod],
|
||||||
|
@ -230,7 +230,9 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
traceStore.resetState();
|
traceStore.resetState();
|
||||||
removeAssociationFilters(props.data);
|
const config = props.data;
|
||||||
|
delete config.filters;
|
||||||
|
dashboardStore.setWidget(config);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
Reference in New Issue
Block a user