mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-20 14:37:34 +00:00
fix graph
This commit is contained in:
parent
4339fd645a
commit
c8bd3077a8
@ -34,7 +34,8 @@ import { useDashboardStore } from "@/store/modules/dashboard";
|
|||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
const fontSize = ref(dashboardStore.selectedGrid.graph.fontSize);
|
const graph = dashboardStore.selectedGrid.graph || {};
|
||||||
|
const fontSize = ref(graph.fontSize);
|
||||||
|
|
||||||
function updateConfig(param: { [key: string]: unknown }) {
|
function updateConfig(param: { [key: string]: unknown }) {
|
||||||
const graph = {
|
const graph = {
|
||||||
|
@ -165,10 +165,8 @@ export default defineComponent({
|
|||||||
const isList = ListChartTypes.includes(
|
const isList = ListChartTypes.includes(
|
||||||
(props.data.graph && props.data.graph.type) || ""
|
(props.data.graph && props.data.graph.type) || ""
|
||||||
);
|
);
|
||||||
if (
|
const chart = dashboardStore.selectedGrid.graph || {};
|
||||||
ListChartTypes.includes(dashboardStore.selectedGrid.graph.type) ||
|
if (ListChartTypes.includes(chart.type) || isList) {
|
||||||
isList
|
|
||||||
) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
queryMetrics();
|
queryMetrics();
|
||||||
|
Loading…
Reference in New Issue
Block a user