mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
fix: update
This commit is contained in:
parent
20292e2a1c
commit
c91e30a4c3
@ -284,12 +284,14 @@ limitations under the License. -->
|
||||
return;
|
||||
}
|
||||
await queryExpressions();
|
||||
const index = (props.data.children || []).findIndex((tab: any) => tab.enable !== false) || 0;
|
||||
const items = ((props.data.children || [])[index] || {}).children;
|
||||
dashboardStore.setCurrentTabItems(items || []);
|
||||
dashboardStore.activeGridItem(0);
|
||||
activeTabIndex.value = index;
|
||||
needQuery.value = true;
|
||||
if ((props.data.children || [])[activeTabIndex.value]?.enable === false) {
|
||||
const index = (props.data.children || []).findIndex((tab: any) => tab.enable !== false) || 0;
|
||||
const items = ((props.data.children || [])[index] || {}).children;
|
||||
dashboardStore.setCurrentTabItems(items || []);
|
||||
dashboardStore.activeGridItem(0);
|
||||
activeTabIndex.value = index;
|
||||
needQuery.value = true;
|
||||
}
|
||||
},
|
||||
);
|
||||
watch(
|
||||
|
Loading…
Reference in New Issue
Block a user