mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 13:15:24 +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 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 }) {
|
||||
const graph = {
|
||||
|
@ -165,10 +165,8 @@ export default defineComponent({
|
||||
const isList = ListChartTypes.includes(
|
||||
(props.data.graph && props.data.graph.type) || ""
|
||||
);
|
||||
if (
|
||||
ListChartTypes.includes(dashboardStore.selectedGrid.graph.type) ||
|
||||
isList
|
||||
) {
|
||||
const chart = dashboardStore.selectedGrid.graph || {};
|
||||
if (ListChartTypes.includes(chart.type) || isList) {
|
||||
return;
|
||||
}
|
||||
queryMetrics();
|
||||
|
Loading…
Reference in New Issue
Block a user