mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 09:00:50 +00:00
fix widget id
This commit is contained in:
parent
4217837421
commit
e7eecf46cf
@ -36,8 +36,10 @@ import { Option } from "@/types/app";
|
||||
|
||||
const { t } = useI18n();
|
||||
const dashboardStore = useDashboardStore();
|
||||
const associate = dashboardStore.selectedGrid.associate || {};
|
||||
const widgetId = ref<string[]>(associate.widgetId || []);
|
||||
const associate = dashboardStore.selectedGrid.associate || [];
|
||||
const widgetId = ref<string[]>(
|
||||
associate.map((d: { widgetId: string }) => d.widgetId)
|
||||
);
|
||||
const widgets = computed(() => {
|
||||
const isLinear = ["Bar", "Line", "Area"].includes(
|
||||
dashboardStore.selectedGrid.graph && dashboardStore.selectedGrid.graph.type
|
||||
|
Loading…
Reference in New Issue
Block a user