mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 14:45: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) {
|
activeGridItem(index: string) {
|
||||||
this.activedGridItem = index;
|
this.activedGridItem = index;
|
||||||
},
|
},
|
||||||
setActiveTabIndex(index: number) {
|
setActiveTabIndex(index: number, target?: number) {
|
||||||
const idx = this.layout.findIndex(
|
const m = target || this.activedGridItem;
|
||||||
(d: LayoutConfig) => d.i === this.activedGridItem
|
const idx = this.layout.findIndex((d: LayoutConfig) => d.i === m);
|
||||||
);
|
|
||||||
if (idx < 0) {
|
if (idx < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -150,6 +150,7 @@ export default defineComponent({
|
|||||||
dashboardStore.setCurrentTabItems(
|
dashboardStore.setCurrentTabItems(
|
||||||
dashboardStore.layout[l].children[activeTabIndex.value].children
|
dashboardStore.layout[l].children[activeTabIndex.value].children
|
||||||
);
|
);
|
||||||
|
dashboardStore.setActiveTabIndex(activeTabIndex.value, props.data.i);
|
||||||
}
|
}
|
||||||
|
|
||||||
function clickTabs(e: Event, idx: number) {
|
function clickTabs(e: Event, idx: number) {
|
||||||
|
Loading…
Reference in New Issue
Block a user