mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 06:25:24 +00:00
fix
This commit is contained in:
parent
4c60f69aef
commit
cc2ca225e1
@ -78,7 +78,6 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
async function queryMetrics() {
|
async function queryMetrics() {
|
||||||
const widgets = [];
|
const widgets = [];
|
||||||
|
|
||||||
for (const item of dashboardStore.layout) {
|
for (const item of dashboardStore.layout) {
|
||||||
const isList = ListChartTypes.includes(item.type || "");
|
const isList = ListChartTypes.includes(item.type || "");
|
||||||
if (item.type === WidgetType.Widget && !isList) {
|
if (item.type === WidgetType.Widget && !isList) {
|
||||||
@ -86,7 +85,7 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
if (item.type === WidgetType.Tab) {
|
if (item.type === WidgetType.Tab) {
|
||||||
const index = isNaN(item.activedTabIndex) ? 0 : item.activedTabIndex;
|
const index = isNaN(item.activedTabIndex) ? 0 : item.activedTabIndex;
|
||||||
widgets.push(...item.children[index].children);
|
widgets.push(...item.children[index].children.filter((d: LayoutConfig) => ListChartTypes.includes(d.type)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const configList = widgets.map((d: LayoutConfig) => ({
|
const configList = widgets.map((d: LayoutConfig) => ({
|
||||||
@ -151,7 +150,7 @@ limitations under the License. -->
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
watch(
|
watch(
|
||||||
() => appStore.durationTime,
|
() => [appStore.durationTime, dashboardStore.layout],
|
||||||
() => {
|
() => {
|
||||||
if (dashboardStore.entity === EntityType[1].value) {
|
if (dashboardStore.entity === EntityType[1].value) {
|
||||||
queryMetrics();
|
queryMetrics();
|
||||||
|
Loading…
Reference in New Issue
Block a user