mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 07:05:25 +00:00
fix item
This commit is contained in:
parent
5593416257
commit
f0535ddf03
@ -179,10 +179,9 @@ export const dashboardStore = defineStore({
|
||||
activeGridItem(index: string) {
|
||||
this.activedGridItem = index;
|
||||
},
|
||||
setActiveTabIndex(index: number) {
|
||||
const idx = this.layout.findIndex(
|
||||
(d: LayoutConfig) => d.i === this.activedGridItem
|
||||
);
|
||||
setActiveTabIndex(index: number, target?: number) {
|
||||
const m = target || this.activedGridItem;
|
||||
const idx = this.layout.findIndex((d: LayoutConfig) => d.i === m);
|
||||
if (idx < 0) {
|
||||
return;
|
||||
}
|
||||
|
@ -150,6 +150,7 @@ export default defineComponent({
|
||||
dashboardStore.setCurrentTabItems(
|
||||
dashboardStore.layout[l].children[activeTabIndex.value].children
|
||||
);
|
||||
dashboardStore.setActiveTabIndex(activeTabIndex.value, props.data.i);
|
||||
}
|
||||
|
||||
function clickTabs(e: Event, idx: number) {
|
||||
|
Loading…
Reference in New Issue
Block a user