mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-16 18:45:23 +00:00
fix viewing dashboard with url
This commit is contained in:
parent
9dba83643e
commit
3885617b58
@ -261,7 +261,6 @@ function changeMetrics(
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(arr);
|
|
||||||
states.metrics[index] = arr[0].value;
|
states.metrics[index] = arr[0].value;
|
||||||
const typeOfMetrics = arr[0].type;
|
const typeOfMetrics = arr[0].type;
|
||||||
|
|
||||||
|
@ -101,7 +101,11 @@ export default defineComponent({
|
|||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
const selectorStore = useSelectorStore();
|
const selectorStore = useSelectorStore();
|
||||||
|
|
||||||
if (dashboardStore.entity === EntityType[1].value || props.needQuery) {
|
if (
|
||||||
|
dashboardStore.entity === EntityType[1].value ||
|
||||||
|
props.needQuery ||
|
||||||
|
!dashboardStore.currentDashboard.id
|
||||||
|
) {
|
||||||
queryMetrics();
|
queryMetrics();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,7 +158,11 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
watch(
|
watch(
|
||||||
() => [selectorStore.currentService, selectorStore.currentDestService],
|
() => [
|
||||||
|
selectorStore.currentService,
|
||||||
|
selectorStore.currentDestService,
|
||||||
|
appStore.durationTime,
|
||||||
|
],
|
||||||
() => {
|
() => {
|
||||||
if (
|
if (
|
||||||
dashboardStore.entity === EntityType[0].value ||
|
dashboardStore.entity === EntityType[0].value ||
|
||||||
|
Loading…
Reference in New Issue
Block a user